summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-07-15 16:18:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-07-15 16:18:01 +0300
commit4d058c1bd49cb0214e452fea0a84bce2889b4434 (patch)
tree31cb00df5fc94f626447ba495123d2f2d8660b5f /protocols/FacebookRM/src
parent28ff0c36aee829b301d451ad232185c96e273f57 (diff)
PROTO_INTERFACE::ReportSelfAvatarChanged = useful helper for working with avatars
Diffstat (limited to 'protocols/FacebookRM/src')
-rw-r--r--protocols/FacebookRM/src/avatars.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/avatars.cpp b/protocols/FacebookRM/src/avatars.cpp
index 51a59f576f..af553cd948 100644
--- a/protocols/FacebookRM/src/avatars.cpp
+++ b/protocols/FacebookRM/src/avatars.cpp
@@ -76,7 +76,7 @@ void FacebookProto::CheckAvatarChange(MCONTACT hContact, const std::string &imag
if (!hContact) {
PROTO_AVATAR_INFORMATION ai = { 0 };
if (GetAvatarInfo(update_required ? GAIF_FORCE : 0, (LPARAM)&ai) != GAIR_WAITFOR)
- CallService(MS_AV_REPORTMYAVATARCHANGED, (WPARAM)m_szModuleName);
+ ReportSelfAvatarChanged();
}
else if (update_required) {
db_set_b(hContact, "ContactPhoto", "NeedUpdate", 1);
@@ -109,7 +109,7 @@ void FacebookProto::UpdateAvatarWorker(void *)
if (ai.hContact)
ProtoBroadcastAck(ai.hContact, ACKTYPE_AVATAR, success ? ACKRESULT_SUCCESS : ACKRESULT_FAILED, (HANDLE)&ai);
else if (success)
- CallService(MS_AV_REPORTMYAVATARCHANGED, (WPARAM)m_szModuleName);
+ ReportSelfAvatarChanged();
}
mir_cslock s(avatar_lock_);