aboutsummaryrefslogtreecommitdiff
path: root/lib/room.cpp
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:51:39 +0200
commit9edfefe9b209583d18ce92e7ffd73e8aa1f3ef1e (patch)
tree7319b1f1bbd205e8118ac9c4467ea2c53f560aff /lib/room.cpp
parent32d6616677bc4a94554527110e8d227aaf3aea34 (diff)
downloadlibquotient-9edfefe9b209583d18ce92e7ffd73e8aa1f3ef1e.tar.gz
libquotient-9edfefe9b209583d18ce92e7ffd73e8aa1f3ef1e.zip
Fix Room::processAccountDataEvent() return value
(cherry picked from commit 7b65051e959968fe538f40c975d85757cfcc7df7)
Diffstat (limited to 'lib/room.cpp')
-rw-r--r--lib/room.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/room.cpp b/lib/room.cpp
index a5940eb2..bd3267d5 100644
--- a/lib/room.cpp
+++ b/lib/room.cpp
@@ -2694,9 +2694,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>