Unverified Commit 15b09862 authored by Elias Nahum's avatar Elias Nahum
Browse files

MM-15532 properly mark channel as read when reading the channel in another client (#832)

parent a1c4fb58
......@@ -570,7 +570,7 @@ function handleChannelViewedEvent(msg) {
const currentChannelId = getCurrentChannelId(state);
const currentUserId = getCurrentUserId(state);
if (channelId !== currentChannelId && currentUserId === msg.broadcast.user_activity) {
if (channelId !== currentChannelId && currentUserId === msg.broadcast.user_id) {
dispatch(markChannelAsRead(channelId, null, false));
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment