aboutsummaryrefslogtreecommitdiff
path: root/lib
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-11 17:52:44 +0200
commitadb6725c04918d1323b4fc4e3a8cba91ae1dde60 (patch)
tree1e3a2e3d7b3541feacd37fdeedbe34be7313dc6f /lib
parent74dda96855b6245b09a8f7eb0512b4457b18a6b7 (diff)
downloadlibquotient-adb6725c04918d1323b4fc4e3a8cba91ae1dde60.tar.gz
libquotient-adb6725c04918d1323b4fc4e3a8cba91ae1dde60.zip
Fix Room::processAccountDataEvent() return value
(cherry picked from commit 7b65051e959968fe538f40c975d85757cfcc7df7) (cherry picked from commit 9edfefe9b209583d18ce92e7ffd73e8aa1f3ef1e)
Diffstat (limited to 'lib')
-rw-r--r--lib/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index c314fc72..0984bd96 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -2766,9 +2766,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>