Beispiel #1
0
        public void MemberLeave(RoomMember member)
        {
            var didRemove = _members.Remove(member);

            if (!didRemove)
            {
                return;
            }

            _statisticsService.DecrementUserCount();

            _roomEvents.Add(new UserEvent(member.UserName, member.FriendlyName, UserEventType.LeftRoom));
            OnRoomNotification?.Invoke(this, new RoomNotification
            {
                Category = RoomNotificationCategory.Information,
                Message  = $"{member.FriendlyName} left the room"
            });

            OnRoomMembersChanged?.Invoke(this, member.UserName);

            UpdateReactionTotals();
        }