mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
fixed delete chat where you are not participant / deactivated chat, scheme updated
This commit is contained in:
@@ -860,7 +860,7 @@ DragState MainWidget::getDragState(const QMimeData *mime) {
|
||||
bool MainWidget::leaveChatFailed(PeerData *peer, const RPCError &error) {
|
||||
if (mtpIsFlood(error)) return false;
|
||||
|
||||
if (error.type() == qstr("USER_NOT_PARTICIPANT") || error.type() == qstr("CHAT_ID_INVALID")) { // left this chat already
|
||||
if (error.type() == qstr("USER_NOT_PARTICIPANT") || error.type() == qstr("CHAT_ID_INVALID") || error.type() == qstr("PEER_ID_INVALID")) { // left this chat already
|
||||
deleteConversation(peer);
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user