Skip to content

Commit

Permalink
新着チャットを取得する間隔設定の項目を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
mimonelu committed May 23, 2024
1 parent f1cba26 commit bf0db9b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 19 deletions.
5 changes: 4 additions & 1 deletion src/composables/atp-wrapper/chat/fetch-chat-convos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export default async function (
const response = await (this.agent as BskyAgent).api.chat.bsky.convo.listConvos(query, options)
.then((value: ChatBskyConvoListConvos.Response) => value)
.catch((error: Error) => error)
console.log("[klearsky/api.chat.bsky.convo.listConvos]", response)

// 定期取得時に邪魔になるためコメントアウト
// console.log("[klearsky/api.chat.bsky.convo.listConvos]", response)

if (response instanceof Error) {
return response
}
Expand Down
4 changes: 2 additions & 2 deletions src/composables/atp-wrapper/session/update-jwt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export default async function (
refreshDate.setTime(refreshJwt.exp * 1000)
accessDate.setTime(accessJwt.exp * 1000)
console.log(
`[klearsky] refreshJwt will be expired at ${refreshDate.toLocaleString()}\n` +
`[klearsky] accessJwt will be expired at ${accessDate.toLocaleString()}`
`[klearsky] refreshJwt will be expired at ${refreshDate.toLocaleString()}, ` +
`accessJwt will be expired at ${accessDate.toLocaleString()}`
)

const now = Date.now() / 1000 + 60 * 5
Expand Down
2 changes: 1 addition & 1 deletion src/composables/main-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ function saveSettings () {
state.settings[did].autoTranslationIgnoreLanguage = undefined
}
if (state.settings[did].chatFetchInterval == null) {
state.settings[did].chatFetchInterval = 60000
state.settings[did].chatFetchInterval = 30000
}
if (state.settings[did].contentLanguages == null) {
state.settings[did].contentLanguages = []
Expand Down
10 changes: 5 additions & 5 deletions src/consts/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
],
"CHAT_FETCH_INTERVAL": [
{ "label": "chatFetchInterval1", "value": 0 },
{ "label": "chatFetchInterval2", "value": 30000 },
{ "label": "chatFetchInterval3", "value": 60000 },
{ "label": "chatFetchInterval4", "value": 180000 },
{ "label": "chatFetchInterval5", "value": 600000 },
{ "label": "chatFetchInterval6", "value": 3600000 }
{ "label": "chatFetchInterval2", "value": 15000 },
{ "label": "chatFetchInterval3", "value": 30000 },
{ "label": "chatFetchInterval4", "value": 60000 },
{ "label": "chatFetchInterval5", "value": 300000 },
{ "label": "chatFetchInterval6", "value": 600000 }
],
"FONT_SIZES": [
{ "label": "fontSizeSmall", "value": "small" },
Expand Down
10 changes: 5 additions & 5 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,11 @@

"chatFetchInterval": "Interval to Fetch Chats",
"chatFetchInterval1": "OFF",
"chatFetchInterval2": "Every 30 sec.",
"chatFetchInterval3": "Every 1 min.",
"chatFetchInterval4": "Every 3 min.",
"chatFetchInterval5": "Every 10 min.",
"chatFetchInterval6": "Every hour",
"chatFetchInterval2": "Every 15 sec.",
"chatFetchInterval3": "Every 30 sec.",
"chatFetchInterval4": "Every 1 min.",
"chatFetchInterval5": "Every 5 min.",
"chatFetchInterval6": "Every 10 min.",

"timelineControl": "Following Feed Control",
"timelineControlDescription": "Effective from the next download.",
Expand Down
10 changes: 5 additions & 5 deletions src/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,11 @@

"chatFetchInterval": "新着チャットを取得する間隔",
"chatFetchInterval1": "取得しない",
"chatFetchInterval2": "30秒ごと",
"chatFetchInterval3": "1分ごと",
"chatFetchInterval4": "3分ごと",
"chatFetchInterval5": "10分ごと",
"chatFetchInterval6": "1時間ごと",
"chatFetchInterval2": "15秒ごと",
"chatFetchInterval3": "30秒ごと",
"chatFetchInterval4": "1分ごと",
"chatFetchInterval5": "5分ごと",
"chatFetchInterval6": "10分ごと",

"timelineControl": "フォロー中フィードの制御",
"timelineControlDescription": "次のダウンロードから有効です。",
Expand Down

0 comments on commit bf0db9b

Please sign in to comment.