Skip to content

Commit

Permalink
work for real-time messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik21 committed Oct 5, 2023
1 parent d438803 commit f3445b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/store/messages/saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ export function* receiveDelete(action) {

export function* receiveNewMessage(action) {
let { channelId, message } = action.payload;
yield call(mapMessageSenders, [message]);

const channel = yield select(rawChannelSelector(channelId));
const currentMessages = channel?.messages || [];
Expand Down

0 comments on commit f3445b4

Please sign in to comment.