summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/JabberG/src/jabber_userinfo.cpp10
-rw-r--r--protocols/JabberG/src/jabber_vcard.cpp8
2 files changed, 11 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_userinfo.cpp b/protocols/JabberG/src/jabber_userinfo.cpp
index e4cd046a4f..6688a21ee1 100644
--- a/protocols/JabberG/src/jabber_userinfo.cpp
+++ b/protocols/JabberG/src/jabber_userinfo.cpp
@@ -955,10 +955,12 @@ int CJabberProto::OnUserInfoInit(WPARAM wParam, LPARAM hContact)
uip.szTitle.w = LPGENW("Account");
g_plugin.addUserInfo(wParam, &uip);
- uip.pDialog = new JabberUserPhotoDlg(this);
- uip.position = 2000000000;
- uip.szTitle.w = LPGENW("Photo");
- g_plugin.addUserInfo(wParam, &uip);
+ if (!ServiceExists(MS_AV_GETAVATARBITMAP)) {
+ uip.pDialog = new JabberUserPhotoDlg(this);
+ uip.position = 2000000000;
+ uip.szTitle.w = LPGENW("Photo");
+ g_plugin.addUserInfo(wParam, &uip);
+ }
CheckOmemoUserInfo(wParam, uip);
}
diff --git a/protocols/JabberG/src/jabber_vcard.cpp b/protocols/JabberG/src/jabber_vcard.cpp
index 41cb908e0b..44c4220af6 100644
--- a/protocols/JabberG/src/jabber_vcard.cpp
+++ b/protocols/JabberG/src/jabber_vcard.cpp
@@ -1066,9 +1066,11 @@ void CJabberProto::OnUserInfoInit_VCard(WPARAM wParam, LPARAM)
uip.szTitle.w = LPGENW("Work");
g_plugin.addUserInfo(wParam, &uip);
- uip.pDialog = new JabberVcardPhotoDlg(this);
- uip.szTitle.w = LPGENW("Photo");
- g_plugin.addUserInfo(wParam, &uip);
+ if (!ServiceExists(MS_AV_GETAVATARBITMAP)) {
+ uip.pDialog = new JabberVcardPhotoDlg(this);
+ uip.szTitle.w = LPGENW("Photo");
+ g_plugin.addUserInfo(wParam, &uip);
+ }
uip.pDialog = new JabberVcardNoteDlg(this);
uip.szTitle.w = LPGENW("Note");