mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
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
This commit is contained in:
parent
4b17fa1a12
commit
c8b52262bc
1 changed files with 4 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue