Do not aggregate IMDN for basic chat rooms.

This commit is contained in:
Ghislain MARY 2018-04-24 11:36:07 +02:00
parent 6a119f971f
commit 1041cdb5da

View file

@ -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");