From c8b52262bccef296e1febad2adf162eadbda551f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Simon=20Fauteux-Chapleau?= Date: Mon, 29 Jan 2024 16:18:00 -0500 Subject: [PATCH] Fix empty notification when missing a call When a user misses a call, they receive a message saying so in the chat and get a notification for that message, but the notification's body was empty instead of matching the message's content. Change-Id: I24971d1d0a976ea3ab15ac30c4e9ed33fdf3d760 --- src/libclient/conversationmodel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libclient/conversationmodel.cpp b/src/libclient/conversationmodel.cpp index aabff3fb..9b36e52a 100644 --- a/src/libclient/conversationmodel.cpp +++ b/src/libclient/conversationmodel.cpp @@ -2379,9 +2379,11 @@ ConversationModelPimpl::slotMessageReceived(const QString& accountId, } QString msgId = message.id; auto msg = interaction::Info(message, linked.owner.profileInfo.uri); - api::datatransfer::Info info; - if (msg.type == interaction::Type::DATA_TRANSFER) { + if (msg.type == interaction::Type::CALL) { + msg.body = interaction::getCallInteractionString(msg.authorUri == linked.owner.profileInfo.uri, + msg); + } else if (msg.type == interaction::Type::DATA_TRANSFER) { // save data transfer interaction to db and assosiate daemon id with interaction id, // conversation id and db id QString fileId = message.body.value("fileId");