From 1041cdb5da35711807f0a12dc35be7069f981006 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 24 Apr 2018 11:36:07 +0200 Subject: [PATCH] Do not aggregate IMDN for basic chat rooms. --- src/chat/notification/imdn.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/chat/notification/imdn.cpp b/src/chat/notification/imdn.cpp index b538cf015..24d1300e1 100644 --- a/src/chat/notification/imdn.cpp +++ b/src/chat/notification/imdn.cpp @@ -206,6 +206,12 @@ void Imdn::send () { } void Imdn::startTimer () { + if (!chatRoom->canHandleCpim()) { + // Compatibility mode for basic chat rooms, do not aggregate notifications + send(); + return; + } + unsigned int duration = 500; if (!timer) timer = chatRoom->getCore()->getCCore()->sal->create_timer(timerExpired, this, duration, "imdn timeout");