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} chatUserMessageItem={true}
handleReadMessage={(timestamp) => { handleReadMessage={(timestamp) => {
if (!read) { if (!read) {
dispatchLastReadTimestampChanged(dispatch, chatId, timestamp); dispatch({
updateLastReadByPartnerTime(timestamp); type: 'last_read_message_timestamp_changed',
value: {
chatId,
timestamp,
},
});
} }
}} }}
scrollArea={scrollArea} scrollArea={scrollArea}