summaryrefslogtreecommitdiff
path: root/src/services/note
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-08 02:10:46 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-08 02:10:46 +0900
commit39bdfb6e0d3270b37c614bc0d54749faeb6c0623 (patch)
treee1bc06299aed27bcf8c6f04db11cc147ab9fa24c /src/services/note
parentFix bug (diff)
downloadsharkey-39bdfb6e0d3270b37c614bc0d54749faeb6c0623.tar.gz
sharkey-39bdfb6e0d3270b37c614bc0d54749faeb6c0623.tar.bz2
sharkey-39bdfb6e0d3270b37c614bc0d54749faeb6c0623.zip
Improve usability
Diffstat (limited to 'src/services/note')
-rw-r--r--src/services/note/unread.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/note/unread.ts b/src/services/note/unread.ts
index 5953f61fe1..e84ac2a4bf 100644
--- a/src/services/note/unread.ts
+++ b/src/services/note/unread.ts
@@ -22,7 +22,7 @@ export default async function(user: IUser, note: INote, isSpecified = false) {
}
});
- // 3秒経っても既読にならなかったら「未読の投稿がありますよ」イベントを発行する
+ // 2秒経っても既読にならなかったら「未読の投稿がありますよ」イベントを発行する
setTimeout(async () => {
const exist = await NoteUnread.findOne({ _id: unread._id });
if (exist == null) return;
@@ -43,5 +43,5 @@ export default async function(user: IUser, note: INote, isSpecified = false) {
if (isSpecified) {
publishMainStream(user._id, 'unreadSpecifiedNote', note._id);
}
- }, 3000);
+ }, 2000);
}