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

pull/25167/head
Sidharth Mohanty 4 years ago committed by GitHub
parent e80c6e8f08
commit e7733ac4d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/meteor/app/lib/server/functions/setUserActiveStatus.ts

@ -61,7 +61,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);

Loading…
Cancel
Save