Page MenuHomePhorge

D62.1732539733.diff
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

D62.1732539733.diff

diff --git a/src/client/room/room-model.hpp b/src/client/room/room-model.hpp
--- a/src/client/room/room-model.hpp
+++ b/src/client/room/room-model.hpp
@@ -65,17 +65,6 @@
immer::flex_vector<Event> stateEvents;
};
- struct AppendTimelineAction
- {
- immer::flex_vector<Event> events;
- };
-
- struct PrependTimelineAction
- {
- immer::flex_vector<Event> events;
- std::string paginateBackToken;
- };
-
struct AddToTimelineAction
{
/// Events from oldest to latest
@@ -279,8 +268,6 @@
using Action = std::variant<
AddStateEventsAction,
- AppendTimelineAction,
- PrependTimelineAction,
AddToTimelineAction,
AddAccountDataAction,
ChangeMembershipAction,
diff --git a/src/client/room/room-model.cpp b/src/client/room/room-model.cpp
--- a/src/client/room/room-model.cpp
+++ b/src/client/room/room-model.cpp
@@ -72,23 +72,6 @@
}
return r;
},
- [&](AppendTimelineAction a) {
- auto eventIds = intoImmer(immer::flex_vector<std::string>(),
- zug::map(keyOfTimeline), a.events);
- r.timeline = r.timeline + eventIds;
- r.messages = merge(std::move(r.messages), a.events, keyOfTimeline);
- return r;
- },
- [&](PrependTimelineAction a) {
- auto eventIds = intoImmer(immer::flex_vector<std::string>(),
- zug::map(keyOfTimeline), a.events);
- r.timeline = eventIds + r.timeline;
- r.messages = merge(std::move(r.messages), a.events, keyOfTimeline);
- r.paginateBackToken = a.paginateBackToken;
- // if there are no more events we should not allow further paginating
- r.canPaginateBack = a.events.size() != 0;
- return r;
- },
[&](AddToTimelineAction a) {
auto eventIds = intoImmer(immer::flex_vector<std::string>(),
zug::map(keyOfTimeline), a.events);

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 5:02 AM (10 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39865
Default Alt Text
D62.1732539733.diff (2 KB)

Event Timeline