New message notification doesn't disappear

This commit is contained in:
Scroody 2023-05-31 13:42:49 -03:00
parent a672b482f5
commit b2f99a5516

View File

@ -266,8 +266,13 @@ class TimeWindowChatItem extends PureComponent {
chatUserMessageItem={true}
handleReadMessage={(timestamp) => {
if (!read) {
dispatchLastReadTimestampChanged(dispatch, chatId, timestamp);
updateLastReadByPartnerTime(timestamp);
dispatch({
type: 'last_read_message_timestamp_changed',
value: {
chatId,
timestamp,
},
});
}
}}
scrollArea={scrollArea}