Skip to content

Commit

Permalink
fix: break if deactivate user with no other room owner
Browse files Browse the repository at this point in the history
  • Loading branch information
sidmohanty11 committed Apr 12, 2022
1 parent fbd8337 commit 94819eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function setUserActiveStatus(userId: string, active: boolean, confirmReli

if (shouldRemoveOrChangeOwner(chatSubscribedRooms) && !confirmRelinquish) {
const rooms = getUserSingleOwnedRooms(chatSubscribedRooms as []);
throw new Meteor.Error('user-last-owner', '', String(rooms));
throw new Meteor.Error('user-last-owner', '', rooms);
}

closeOmnichannelConversations(user, livechatSubscribedRooms);
Expand Down

0 comments on commit 94819eb

Please sign in to comment.