mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-05 03:04:50 +01:00
Fix #4938
This commit is contained in:
parent
45eeb74b83
commit
c3fada264f
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ export async function readUserMessagingMessage(
|
|||
publishMessagingStream(otherpartyId, userId, 'read', messageIds);
|
||||
publishMessagingIndexStream(userId, 'read', messageIds);
|
||||
|
||||
if (!Users.getHasUnreadMessagingMessage(userId)) {
|
||||
if (!await Users.getHasUnreadMessagingMessage(userId)) {
|
||||
// 全ての(いままで未読だった)自分宛てのメッセージを(これで)読みましたよというイベントを発行
|
||||
publishMainStream(userId, 'readAllMessagingMessages');
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ export async function readGroupMessagingMessage(
|
|||
});
|
||||
publishMessagingIndexStream(userId, 'read', reads);
|
||||
|
||||
if (!Users.getHasUnreadMessagingMessage(userId)) {
|
||||
if (!await Users.getHasUnreadMessagingMessage(userId)) {
|
||||
// 全ての(いままで未読だった)自分宛てのメッセージを(これで)読みましたよというイベントを発行
|
||||
publishMainStream(userId, 'readAllMessagingMessages');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue