mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-07-12 19:45:23 +02:00
notifications: fix notification for multi-devices
Change-Id: I75e617eb84d96d2afa0b43d6c50b5d7832ec4012
This commit is contained in:
parent
917dc9675d
commit
03d310fc9f
1 changed files with 4 additions and 3 deletions
|
@ -163,10 +163,11 @@ ConversationsAdapter::onNewUnreadInteraction(const QString& accountId,
|
|||
const QString& interactionId,
|
||||
const interaction::Info& interaction)
|
||||
{
|
||||
if (!interaction.authorUri.isEmpty()
|
||||
&& (!QApplication::focusWindow() || accountId != lrcInstance_->get_currentAccountId()
|
||||
|| convUid != lrcInstance_->get_selectedConvUid())) {
|
||||
if (!QApplication::focusWindow() || accountId != lrcInstance_->get_currentAccountId()
|
||||
|| convUid != lrcInstance_->get_selectedConvUid()) {
|
||||
auto& accountInfo = lrcInstance_->getAccountInfo(accountId);
|
||||
if (interaction.authorUri == accountInfo.profileInfo.uri)
|
||||
return;
|
||||
auto from = accountInfo.contactModel->bestNameForContact(interaction.authorUri);
|
||||
|
||||
auto preferences = accountInfo.conversationModel->getConversationPreferences(convUid);
|
||||
|
|
Loading…
Add table
Reference in a new issue