aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-10 18:38:55 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-10 18:38:55 +0200
commit7b65051e959968fe538f40c975d85757cfcc7df7 (patch)
tree0aab65bd0f4a577c5b9617b734b42ffdf2488dd5
parentcade454debdb2305302a142d4d392d5c49d0de75 (diff)
downloadlibquotient-7b65051e959968fe538f40c975d85757cfcc7df7.tar.gz
libquotient-7b65051e959968fe538f40c975d85757cfcc7df7.zip
Fix Room::processAccountDataEvent() return value
-rw-r--r--lib/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index 763a75fc..ec0ab379 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -2715,9 +2715,9 @@ Room::Changes Room::processAccountDataEvent(EventPtr&& event)
qCDebug(STATE) << "Updated account data of type"
<< currentData->matrixType();
emit accountDataChanged(currentData->matrixType());
- return Change::AccountDataChange;
+ changes |= Change::AccountDataChange;
}
- return Change::NoChange;
+ return changes;
}
template <typename ContT>