Use getMyUserIdForOrigin() in leaveSpace() so federated spaces send the correct remote user ID instead of the home ID. Show context menu for all spaces with "Invite People" action; "Leave Space" only for non-owners.
Use getMyUserIdForOrigin() in leaveSpace() so federated spaces send the correct remote user ID instead of the home ID. Show context menu for all spaces with "Invite People" action; "Leave Space" only for non-owners.