Add config parameter to be able to disable aggregation of IMDN.

This commit is contained in:
Ghislain MARY 2018-04-25 17:21:38 +02:00
parent 4223dbbc5a
commit 9b0d705ee0

View file

@ -216,7 +216,9 @@ void Imdn::send () {
}
void Imdn::startTimer () {
if (!chatRoom->canHandleCpim()) {
auto config = linphone_core_get_config(chatRoom->getCore()->getCCore());
bool aggregateImdn = linphone_config_get_bool(config, "misc", "aggregate_imdn", TRUE);
if (!chatRoom->canHandleCpim() || !aggregateImdn) {
// Compatibility mode for basic chat rooms, do not aggregate notifications
send();
return;