allow deletion of chats which are not started by me
This commit is contained in:
@@ -101,9 +101,13 @@ namespace PolyChat
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void CloseChat(string IP, bool wasConnected = true)
|
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[IP].Close();
|
||||||
Connections.Remove(IP);
|
Connections.Remove(IP);
|
||||||
|
}
|
||||||
CloseChatUI(IP,wasConnected);
|
CloseChatUI(IP,wasConnected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user