From a6614e76cee3c48315f9d27c3e579b3b852f48a1 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 14 Apr 2024 11:13:05 +0200 Subject: [PATCH] move cursers to public api --- external/solanaceae_message3 | 2 +- src/chat_gui4.hpp | 3 --- src/fragment_store/message_fragment_store.hpp | 16 ---------------- 3 files changed, 1 insertion(+), 20 deletions(-) diff --git a/external/solanaceae_message3 b/external/solanaceae_message3 index 7c28b232..f9f70a05 160000 --- a/external/solanaceae_message3 +++ b/external/solanaceae_message3 @@ -1 +1 @@ -Subproject commit 7c28b232a46ebede9d6f09bc6eafb49bacfa99ea +Subproject commit f9f70a05b1d248e84198c83abeda3579107d09bb diff --git a/src/chat_gui4.hpp b/src/chat_gui4.hpp index 283d5fd3..9de29e21 100644 --- a/src/chat_gui4.hpp +++ b/src/chat_gui4.hpp @@ -10,9 +10,6 @@ #include "./file_selector.hpp" #include "./send_image_popup.hpp" -// HACK: move to public msg api? -#include "./fragment_store/message_fragment_store.hpp" - #include #include diff --git a/src/fragment_store/message_fragment_store.hpp b/src/fragment_store/message_fragment_store.hpp index f7ec69f6..c5f9f7e9 100644 --- a/src/fragment_store/message_fragment_store.hpp +++ b/src/fragment_store/message_fragment_store.hpp @@ -29,22 +29,6 @@ namespace Message::Components { Object o {entt::null}; }; - // points to the front/newer message - // together they define a range that is, - // eg the first(end) and last(begin) message being rendered - // MFS requires there to be atleast one other fragment after/before, - // if not loaded fragment with fitting tsrange(direction) available - // uses fragmentAfter/Before() - // they can exist standalone - // if they are a pair, the inside is filled first - // cursers require a timestamp ??? - struct ViewCurserBegin { - Message3 curser_end{entt::null}; - }; - struct ViewCurserEnd { - Message3 curser_begin{entt::null}; - }; - // TODO: add adjacency range comp or inside curser // TODO: unused