[FIX] Fix delete room on team's channel list (#4191)

* fix delete room

* update pods
This commit is contained in:
Gleidson Daniel Silva 2022-05-23 14:16:17 -03:00 committed by GitHub
parent 8178f7cf87
commit aa3f963af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 4 deletions

View File

@ -91,7 +91,7 @@ const handleDeleteRoom = function* handleDeleteRoom({ room, roomType, selected }
let result = {};
if (roomType === 'channel') {
result = yield Services.deleteRoom(room.rid, room.t);
result = yield Services.deleteRoom(room.rid || room._id, room.t);
} else if (roomType === 'team') {
result = yield Services.deleteTeam({ teamId: room.teamId, ...(selected && { roomsToRemove: selected }) });
}

View File

@ -425,8 +425,7 @@ class TeamChannelsView extends React.Component<ITeamChannelsViewProps, ITeamChan
{
text: I18n.t('Yes_action_it', { action: I18n.t('delete') }),
style: 'destructive',
// VERIFY ON PR
onPress: () => dispatch(deleteRoom(item._id, item))
onPress: () => dispatch(deleteRoom(ERoomType.c, item))
}
],
{ cancelable: false }

View File

@ -960,7 +960,7 @@ SPEC CHECKSUMS:
EXVideoThumbnails: 442c3abadb51a81551a3b53705b7560de390e6f7
EXWebBrowser: 76783ba5dcb8699237746ecf41a9643d428a4cc5
FBLazyVector: c9b6dfcde9b3d497793c40d4ccbfbfb05092e0df
FBReactNativeSpec: addc4f0e6ab00dc628fe91de8bfca4601762673a
FBReactNativeSpec: c39f7fc0cd6cc64f0a2a5beffc64b1aa5d42740e
Firebase: 919186c8e119dd9372a45fd1dd17a8a942bc1892
FirebaseAnalytics: 5fa308e1b13f838d0f6dc74719ac2a72e8c5afc4
FirebaseCore: 8cd4f8ea22075e0ee582849b1cf79d8816506085