allow deletion of chats which are not started by me
This commit is contained in:
@@ -104,9 +104,13 @@ namespace PolyChat
|
||||
}
|
||||
|
||||
public void CloseChat(string IP, bool wasConnected = true)
|
||||
{
|
||||
Debug.WriteLine($"Deleting connection with IP:{IP}");
|
||||
if (IP != null && Connections.ContainsKey(IP))
|
||||
{
|
||||
Connections[IP].Close();
|
||||
Connections.Remove(IP);
|
||||
}
|
||||
CloseChatUI(IP,wasConnected);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user