added the avatar and the room title as subtitle in the thread timeline as a principal action

also added a fix for the erroneous reply in thread action while in a thread, and also discovered that we can lead align the principal action again on iOS 26 (so it was a beta issue)
This commit is contained in:
Mauro Romito
2025-09-16 17:19:07 +02:00
committed by Mauro
parent a1038f0ffe
commit 826230001b
6 changed files with 79 additions and 14 deletions
@@ -50,7 +50,9 @@ struct TimelineItemMenuActionProvider {
if item.canBeRepliedTo, canCurrentUserSendMessage {
if let messageItem = item as? EventBasedMessageTimelineItemProtocol {
actions.append(.reply(isThread: messageItem.properties.isThreaded))
// If threads are enabled we will have the dedicated `replyInThread` action
// so there is no need to make the normal reply use the thread.
actions.append(.reply(isThread: areThreadsEnabled ? false : messageItem.properties.isThreaded))
} else {
actions.append(.reply(isThread: false))
}