Improve usability

This commit is contained in:
syuilo 2018-10-08 02:10:46 +09:00
parent 1003fd393e
commit 39bdfb6e0d
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 6 additions and 6 deletions

View file

@ -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);
}