Use latest user data for mention pills

This commit is contained in:
aringenbach
2022-06-16 17:07:47 +02:00
parent 87915a9e30
commit 4c8bed38c2
24 changed files with 357 additions and 97 deletions

View File

@@ -209,6 +209,7 @@ final class ThreadListViewModel: ThreadListViewModelProtocol {
let formatterError = UnsafeMutablePointer<MXKEventFormatterError>.allocate(capacity: 1)
return eventFormatter.attributedString(from: message.replyStrippedVersion,
with: roomState,
andLatestRoomState: nil,
error: formatterError).vc_byRemovingLinks
}
@@ -223,6 +224,7 @@ final class ThreadListViewModel: ThreadListViewModelProtocol {
return (
eventFormatter.attributedString(from: message.replyStrippedVersion,
with: roomState,
andLatestRoomState: nil,
error: formatterError),
eventFormatter.dateString(from: message, withTime: true)
)