aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--room.cpp5
-rw-r--r--room.h5
2 files changed, 6 insertions, 4 deletions
diff --git a/room.cpp b/room.cpp
index 45521a73..0024683d 100644
--- a/room.cpp
+++ b/room.cpp
@@ -160,6 +160,11 @@ class Room::Private
}
};
+RoomEventPtr TimelineItem::replaceEvent(RoomEventPtr&& other)
+{
+ return std::exchange(evt, std::move(other));
+}
+
Room::Room(Connection* connection, QString id, JoinState initialJoinState)
: QObject(connection), d(new Private(connection, id, initialJoinState))
{
diff --git a/room.h b/room.h
index 77d56377..9a458c4e 100644
--- a/room.h
+++ b/room.h
@@ -57,10 +57,7 @@ namespace QMatrixClient
index_t index() const { return idx; }
// Used for event redaction
- RoomEventPtr replaceEvent(RoomEventPtr&& other)
- {
- return std::exchange(evt, std::move(other));
- }
+ RoomEventPtr replaceEvent(RoomEventPtr&& other);
private:
RoomEventPtr evt;