diff options
Diffstat (limited to 'protocols/Telegram')
| -rw-r--r-- | protocols/Telegram/src/proto.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index 9b9b9bb4f5..3b79b01e66 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -117,13 +117,16 @@ void CTelegramProto::OnContactAdded(MCONTACT hContact)  	}  } -bool CTelegramProto::OnContactDeleted(MCONTACT hContact, uint32_t) +bool CTelegramProto::OnContactDeleted(MCONTACT hContact, uint32_t flags)  {  	TD::int53 id = GetId(hContact);  	if (id == 0)  		return false;  	if (auto *pUser = FindUser(id)) { +		if (flags & CDF_DEL_HISTORY) +			SvcEmptyServerHistory(hContact, flags); +  		if (pUser->m_si) {  			SvcLeaveChat(hContact, 0);  			return false;  | 
