summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/src/utils.cpp')
-rw-r--r--protocols/Telegram/src/utils.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Telegram/src/utils.cpp b/protocols/Telegram/src/utils.cpp
index dc0eaac817..0069b77cbb 100644
--- a/protocols/Telegram/src/utils.cpp
+++ b/protocols/Telegram/src/utils.cpp
@@ -228,16 +228,16 @@ void CTelegramProto::ReportSearchUser(TG_USER *pUser)
/////////////////////////////////////////////////////////////////////////////////////////
-int64_t CTelegramProto::GetId(MCONTACT hContact)
+int64_t CTelegramProto::GetId(MCONTACT hContact, const char *pszSetting)
{
- return _atoi64(getMStringA(hContact, DBKEY_ID));
+ return _atoi64(getMStringA(hContact, pszSetting));
}
-void CTelegramProto::SetId(MCONTACT hContact, int64_t id)
+void CTelegramProto::SetId(MCONTACT hContact, int64_t id, const char *pszSetting)
{
char szId[100];
_i64toa(id, szId, 10);
- setString(hContact, DBKEY_ID, szId);
+ setString(hContact, pszSetting, szId);
}
/////////////////////////////////////////////////////////////////////////////////////////