Skip to content

Commit acb6820

Browse files
authored
fix: offline banned user not leaving channel upon reconnect in mobile view (#1194)
Fixes [AC-1893](https://sendbird.atlassian.net/browse/AC-1893) ### Changelogs - Fixed a bug where offline banned user is not leaving channel upon reconnect in mobile view [AC-1893]: https://sendbird.atlassian.net/browse/AC-1893?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
1 parent 078c097 commit acb6820

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/GroupChannel/context/GroupChannelProvider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,12 @@ export const GroupChannelProvider = (props: GroupChannelProviderProps) => {
193193
onChannelDeleted: () => {
194194
setCurrentChannel(null);
195195
setFetchChannelError(null);
196+
onBackClick?.();
196197
},
197198
onCurrentUserBanned: () => {
198199
setCurrentChannel(null);
199200
setFetchChannelError(null);
201+
onBackClick?.();
200202
},
201203
onChannelUpdated: (channel) => setCurrentChannel(channel),
202204
logger: logger as any,

0 commit comments

Comments
 (0)