diff options
Diffstat (limited to 'protocols/Telegram/src/utils.cpp')
-rw-r--r-- | protocols/Telegram/src/utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp index 6ed1bff00d..eab4d893f6 100644 --- a/protocols/Telegram/src/utils.cpp +++ b/protocols/Telegram/src/utils.cpp @@ -55,6 +55,11 @@ CMStringW TG_USER::getDisplayName() const return wszNick;
}
+MCONTACT CTelegramProto::GetRealContact(const TG_USER *pUser)
+{
+ return (pUser->hContact != 0) ? pUser->hContact : m_iSavedMessages;
+}
+
TG_USER* CTelegramProto::GetSender(const TD::MessageSender *pSender)
{
switch (pSender->get_id()) {
|