2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-08-31 14:05:10 +00:00

A Spectrum workaround for group chat notifications

This commit is contained in:
Arseniy Lartsev
2020-08-27 20:12:49 +02:00
parent b55728270b
commit 23a14aa586
3 changed files with 22 additions and 15 deletions

View File

@@ -438,7 +438,10 @@ static void showMessageTextChat(TdAccountData &account, const td::td_api::chat &
if (notification) {
if (conv)
purple_conv_chat_write(conv, "", notification, getNotificationFlags(flags), message.timestamp);
// Protocol plugins mostly use who="" for such messages, but this currently causes problems
// with Spectrum. Use some non-empty string. Pidgin will ignore the who parameter for
// notification messages.
purple_conv_chat_write(conv, " ", notification, getNotificationFlags(flags), message.timestamp);
}
}