loading logic implemented but broken (very funky and sometimes even out of contact)

This commit is contained in:
2024-02-25 18:45:56 +01:00
parent 22f2c8f514
commit 78488daa9b
4 changed files with 291 additions and 86 deletions

View File

@ -10,6 +10,9 @@
#include "./file_selector.hpp"
#include "./send_image_popup.hpp"
// HACK: move to public msg api?
#include "./fragment_store/message_fragment_store.hpp"
#include <entt/container/dense_map.hpp>
#include <cstdint>
@ -32,7 +35,12 @@ class ChatGui4 {
FileSelector _fss;
SendImagePopup _sip;
// TODO: refactor this to allow multiple open contacts
std::optional<Contact3> _selected_contact;
// set to the ts of the newest rendered msg
Message3Handle _view_begin{};
// set to the ts of the oldest rendered msg
Message3Handle _view_end{};
// TODO: per contact
std::string _text_input_buffer;