diff --git a/app/sagas/room.js b/app/sagas/room.js index 7e00e6a71..b25bb2a30 100644 --- a/app/sagas/room.js +++ b/app/sagas/room.js @@ -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 }) }); } diff --git a/app/views/TeamChannelsView.tsx b/app/views/TeamChannelsView.tsx index ab72fda27..ca3fcce18 100644 --- a/app/views/TeamChannelsView.tsx +++ b/app/views/TeamChannelsView.tsx @@ -425,8 +425,7 @@ class TeamChannelsView extends React.Component dispatch(deleteRoom(item._id, item)) + onPress: () => dispatch(deleteRoom(ERoomType.c, item)) } ], { cancelable: false } diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 7daa690a6..1f636ac27 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -960,7 +960,7 @@ SPEC CHECKSUMS: EXVideoThumbnails: 442c3abadb51a81551a3b53705b7560de390e6f7 EXWebBrowser: 76783ba5dcb8699237746ecf41a9643d428a4cc5 FBLazyVector: c9b6dfcde9b3d497793c40d4ccbfbfb05092e0df - FBReactNativeSpec: addc4f0e6ab00dc628fe91de8bfca4601762673a + FBReactNativeSpec: c39f7fc0cd6cc64f0a2a5beffc64b1aa5d42740e Firebase: 919186c8e119dd9372a45fd1dd17a8a942bc1892 FirebaseAnalytics: 5fa308e1b13f838d0f6dc74719ac2a72e8c5afc4 FirebaseCore: 8cd4f8ea22075e0ee582849b1cf79d8816506085