Improve usability
This commit is contained in:
parent
1003fd393e
commit
39bdfb6e0d
3 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue