Load receipts for room before acquiring lock (#213)

This commit is contained in:
Ulyssa 2024-03-06 23:49:35 -08:00 committed by GitHub
parent dd001af365
commit ec81b72f2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 68 additions and 31 deletions

View file

@ -33,7 +33,6 @@ use matrix_sdk::ruma::{
},
redaction::SyncRoomRedactionEvent,
},
AnyMessageLikeEvent,
RedactContent,
RedactedUnsigned,
},
@ -57,7 +56,7 @@ use ratatui_image::protocol::Protocol;
use crate::config::ImagePreviewSize;
use crate::{
base::{IambResult, RoomInfo},
base::RoomInfo,
config::ApplicationSettings,
message::html::{parse_matrix_html, StyleTree},
util::{space, space_span, take_width, wrapped_text},
@ -66,7 +65,6 @@ use crate::{
mod html;
mod printer;
pub type MessageFetchResult = IambResult<(Option<String>, Vec<AnyMessageLikeEvent>)>;
pub type MessageKey = (MessageTimeStamp, OwnedEventId);
pub type Messages = BTreeMap<MessageKey, Message>;