Skip to content
Snippets Groups Projects
Unverified Commit a52afa0e authored by Sidharth Mohanty's avatar Sidharth Mohanty Committed by Diego Sampaio
Browse files

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

parent 174728c9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
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