Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F112866
D62.1732356767.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D62.1732356767.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 2:12 AM (17 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39259
Default Alt Text
D62.1732356767.diff (2 KB)
Attached To
Mode
D62: Remove AppendTimelineAction and PrependTimelineAction
Attached
Detach File
Event Timeline
Log In to Comment