Skip to content
Snippets Groups Projects
Unverified Commit e7733ac4 authored by Sidharth Mohanty's avatar Sidharth Mohanty Committed by GitHub
Browse files

[FIX] Deactivating user not working if user is the only room owner (#24933)

parent e80c6e8f
No related branches found
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ export function setUserActiveStatus(userId: string, active: boolean, confirmReli ...@@ -61,7 +61,7 @@ export function setUserActiveStatus(userId: string, active: boolean, confirmReli
if (shouldRemoveOrChangeOwner(chatSubscribedRooms) && !confirmRelinquish) { if (shouldRemoveOrChangeOwner(chatSubscribedRooms) && !confirmRelinquish) {
const rooms = getUserSingleOwnedRooms(chatSubscribedRooms as []); 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); closeOmnichannelConversations(user, livechatSubscribedRooms);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment