1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-01 16:28:27 +09:00
This commit is contained in:
syuilo 2019-05-19 20:57:05 +09:00
parent 45eeb74b83
commit c3fada264f
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

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