Removing groups from chatters when deleting groups.
This commit is contained in:
@ -87,7 +87,13 @@ namespace TwitchChatTTS.Chat.Groups
|
|||||||
|
|
||||||
public bool Remove(string groupId)
|
public bool Remove(string groupId)
|
||||||
{
|
{
|
||||||
return _groups.Remove(groupId);
|
if (_groups.Remove(groupId))
|
||||||
|
{
|
||||||
|
foreach (var entry in _chatters)
|
||||||
|
entry.Value.Remove(groupId);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool Remove(long chatterId, string groupId)
|
public bool Remove(long chatterId, string groupId)
|
||||||
|
@ -5,8 +5,6 @@ using Serilog;
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Collections.Concurrent;
|
using System.Collections.Concurrent;
|
||||||
using TwitchChatTTS.OBS.Socket.Data;
|
using TwitchChatTTS.OBS.Socket.Data;
|
||||||
using System.Timers;
|
|
||||||
using System.Net.WebSockets;
|
|
||||||
using CommonSocketLibrary.Backoff;
|
using CommonSocketLibrary.Backoff;
|
||||||
|
|
||||||
namespace TwitchChatTTS.OBS.Socket
|
namespace TwitchChatTTS.OBS.Socket
|
||||||
|
Reference in New Issue
Block a user