Skip to content

Commit 988ce80

Browse files
authored
Fix: [v3] QA css issue and mention update (#202)
* Apply display: line-block to the participant list item * Temporary use getChannelWithoutCache when mention count is updated
1 parent 641c548 commit 988ce80

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

src/smart-components/ChannelList/context/ChannelListProvider.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,12 +251,26 @@ const ChannelListProvider: React.FC<ChannelListProviderProps> = (props: ChannelL
251251
type: channelListActions.ON_LAST_MESSAGE_UPDATED,
252252
payload: channel,
253253
});
254+
sdk.groupChannel.getChannelWithoutCache(channel.url)
255+
.then((ch) => {
256+
channelListDispatcher({
257+
type: channelListActions.ON_LAST_MESSAGE_UPDATED,
258+
payload: ch,
259+
});
260+
});
254261
},
255262
onMentionReceived(channel) {
256263
channelListDispatcher({
257264
type: channelListActions.ON_LAST_MESSAGE_UPDATED,
258265
payload: channel,
259266
});
267+
sdk.groupChannel.getChannelWithoutCache(channel.url)
268+
.then((ch) => {
269+
channelListDispatcher({
270+
type: channelListActions.ON_LAST_MESSAGE_UPDATED,
271+
payload: ch,
272+
});
273+
});
260274
},
261275
});
262276
sdk?.groupChannel?.addGroupChannelHandler(handlerId, handler)

src/smart-components/ChannelList/dux/reducers.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,13 @@ export default function reducer(state, action) {
185185
...state,
186186
showSettings: false,
187187
};
188-
case actions.ON_LAST_MESSAGE_UPDATED:
188+
case actions.ON_LAST_MESSAGE_UPDATED: {
189189
return {
190190
...state,
191191
allChannels: state.allChannels.map((channel) => (
192192
channel?.url === action.payload.url ? action.payload : channel)),
193193
};
194+
}
194195
case actions.ON_CHANNEL_FROZEN: {
195196
const channel = action.payload;
196197
if (state.channelListQuery) {

src/smart-components/OpenChannelSettings/components/OpenChannelSettingsUI/open-channel-ui.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150

151151
.sendbird-label {
152152
max-width: 240px;
153+
display: inline-block;
153154
white-space: nowrap;
154155
overflow: hidden;
155156
text-overflow: ellipsis;

0 commit comments

Comments
 (0)