From 39bdfb6e0d3270b37c614bc0d54749faeb6c0623 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 8 Oct 2018 02:10:46 +0900 Subject: Improve usability --- src/services/note/unread.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/services/note') 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); } -- cgit v1.2.3-freya