Hide thread context menu in the thread

This commit is contained in:
ismailgulek
2021-11-12 17:30:31 +03:00
committed by GitHub
parent 0de8f92309
commit 4b9a8ecefa
+2 -2
View File
@@ -5903,9 +5903,9 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
[items addObject:[self copyMenuItemWithEvent:event andCell:cell]];
[items addObject:[self replyMenuItemWithEvent:event]];
if (RiotSettings.shared.enableThreads && !event.threadIdentifier)
if (RiotSettings.shared.enableThreads && !self.roomDataSource.threadId && !event.threadIdentifier)
{
// add "reply in thread" option only if not a thread already
// add "reply in thread" option only if not in thread already
[items addObject:[self replyInThreadMenuItemWithEvent:event]];
}
[items addObject:[self editMenuItemWithEvent:event]];