File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Sources/StreamChatSwiftUI/ChatChannel/Reactions/MessageActions Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -309,19 +309,21 @@ extension MessageAction {
309
309
for message: ChatMessage ,
310
310
channel: ChatChannel
311
311
) -> MessageAction {
312
- var replyThread = MessageAction (
312
+ let replyThread = MessageAction (
313
313
id: MessageActionId . threadReply,
314
314
title: L10n . Message. Actions. threadReply,
315
315
iconName: " icn_thread_reply " ,
316
316
action: {
317
- // No action performed, only navigation.
317
+ NotificationCenter . default. post (
318
+ name: NSNotification . Name ( MessageRepliesConstants . selectedMessageThread) ,
319
+ object: nil ,
320
+ userInfo: [ MessageRepliesConstants . selectedMessage: message]
321
+ )
318
322
} ,
319
323
confirmationPopup: nil ,
320
324
isDestructive: false
321
325
)
322
326
323
- let destination = factory. makeMessageThreadDestination ( )
324
- replyThread. navigationDestination = AnyView ( destination ( channel, message) )
325
327
return replyThread
326
328
}
327
329
You can’t perform that action at this time.
0 commit comments