diff options
| author | George Hazan <ghazan@miranda.im> | 2023-02-22 17:02:52 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2023-02-22 17:02:52 +0300 |
| commit | a14e6388fd3266c6815a4ebaad3a942896c3e80a (patch) | |
| tree | 84147df60f4be482f3c5074ce1f8adcdbf46b4a2 /protocols/Discord/src | |
| parent | 061a20a9cf305cf5fabe2a35b7d8a86eb8d6b154 (diff) | |
if one needs to remove a chat's contact, just remove it and don't fuck my brain
Diffstat (limited to 'protocols/Discord/src')
| -rw-r--r-- | protocols/Discord/src/dispatch.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index 10c39e8241..d0619f3c02 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -109,7 +109,7 @@ void CDiscordProto::OnCommandChannelDeleted(const JSONNode &pRoot) else {
CDiscordGuild *pGuild = FindGuild(guildId);
if (pGuild != nullptr) {
- Chat_Terminate(pUser->si, true);
+ db_delete_contact(pUser->si->hContact);
pUser->si = nullptr;
}
}
@@ -185,11 +185,11 @@ void CDiscordProto::OnCommandGuildDeleted(const JSONNode &pRoot) for (auto &it : arUsers.rev_iter())
if (it->pGuild == pGuild) {
- Chat_Terminate(it->si, true);
+ db_delete_contact(it->si->hContact);
arUsers.removeItem(&it);
}
- Chat_Terminate(pGuild->pParentSi, true);
+ db_delete_contact(pGuild->pParentSi->hContact);
pGuild->pParentSi = nullptr;
arGuilds.remove(pGuild);
|
