We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d714b61 commit 7970a8eCopy full SHA for 7970a8e
src/smart-components/ChannelList/utils.js
@@ -248,7 +248,9 @@ export const pubSubHandler = (pubSub, channelListDispatcher) => {
248
subScriber.set(topics.UPDATE_USER_MESSAGE, pubSub.subscribe(topics.UPDATE_USER_MESSAGE, (msg) => {
249
const { channel, message } = msg;
250
const updatedChannel = channel;
251
- updatedChannel.lastMessage = message;
+ if (updatedChannel.lastMessage && updatedChannel.lastMessage.messageId === message.messageId) {
252
+ updatedChannel.lastMessage = message;
253
+ }
254
if (channel) {
255
channelListDispatcher({
256
type: channelActions.ON_LAST_MESSAGE_UPDATED,
0 commit comments