2
0
mirror of https://github.com/ars3niy/tdlib-purple synced 2025-09-05 08:35:27 +00:00

Do not pass NULL user name to purple_conv_im_write

Bitlbee was crashing on it
This commit is contained in:
Arseniy Lartsev
2020-06-10 17:40:59 +02:00
parent bf49eb9916
commit a556917a92

View File

@@ -408,7 +408,7 @@ void showMessageTextIm(TdAccountData &account, const char *purpleUserName, const
if (notification) {
if (conv == NULL)
conv = getImConversation(account.purpleAccount, purpleUserName);
purple_conv_im_write(purple_conversation_get_im_data(conv), nullptr, notification,
purple_conv_im_write(purple_conversation_get_im_data(conv), purpleUserName, notification,
getNotificationFlags(flags), timestamp);
}
}