From d47aa769b30c0c81e0f599b1c5ebee9da10c0d7b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 12 Aug 2020 18:02:36 +0300 Subject: Jabber: picture inlining should be disabled for group chats (by design) --- protocols/JabberG/src/jabber_ft.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/JabberG/src/jabber_ft.cpp b/protocols/JabberG/src/jabber_ft.cpp index 4ce9ee23ac..83fdf87b1b 100644 --- a/protocols/JabberG/src/jabber_ft.cpp +++ b/protocols/JabberG/src/jabber_ft.cpp @@ -110,8 +110,8 @@ void CJabberProto::FtInitiate(filetransfer *ft) if (wchar_t *p = wcsrchr(filename, '\\')) filename = p + 1; - // if we enabled XEP-0231, try to inline a picture - if (m_bInlinePictures && ProtoGetAvatarFileFormat(ft->std.szCurrentFile.w)) { + // if we enabled XEP-0231, try to inline a picture (but only for private chats) + if (m_bInlinePictures && ProtoGetAvatarFileFormat(ft->std.szCurrentFile.w) && !isChatRoom(ft->std.hContact)) { if (FtTryInlineFile(ft)) { mir_forkthread(FakeAckThread, ft); return; -- cgit v1.2.3