private void TryClose() { // If there is only one participant (owner), and all requests were aborted, close the conversation if (_participants.Count < 2 && !_callRequests.Any()) { Broadcast(new Message(Message.MessageType.CloseConversation, "NoMembersLeft")); CloseConversation?.Invoke(this); } }
public void Close() { Broadcast(new Message(Message.MessageType.CloseConversation, "ClosedByServer")); CloseConversation?.Invoke(this); }
// Close all background conversations. public void CloseConversations() => CloseConversation?.Invoke();