Add thread option to an event if the labs setting enabled

This commit is contained in:
ismailgulek 2021-11-09 15:24:08 +03:00
parent 1e7c9bbd72
commit d80aba0793
No known key found for this signature in database
GPG key ID: E96336D42D9470A9
3 changed files with 3 additions and 3 deletions

View file

@ -378,7 +378,7 @@ Tap the + to start adding people.";
"room_event_action_cancel_download" = "Cancel Download";
"room_event_action_view_encryption" = "Encryption Information";
"room_event_action_reply" = "Reply";
"room_event_action_reply_in_thread" = "Reply in thread";
"room_event_action_reply_in_thread" = "Thread";
"room_event_action_edit" = "Edit";
"room_event_action_reaction_show_all" = "Show all";
"room_event_action_reaction_show_less" = "Show less";

View file

@ -2927,7 +2927,7 @@ public class VectorL10n: NSObject {
public static var roomEventActionReply: String {
return VectorL10n.tr("Vector", "room_event_action_reply")
}
/// Reply in thread
/// Thread
public static var roomEventActionReplyInThread: String {
return VectorL10n.tr("Vector", "room_event_action_reply_in_thread")
}

View file

@ -5931,7 +5931,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
[items addObject:[self copyMenuItemWithEvent:event andCell:cell]];
[items addObject:[self replyMenuItemWithEvent:event]];
if (!event.threadIdentifier)
if (RiotSettings.shared.enableThreads && !event.threadIdentifier)
{
// add "reply in thread" option only if not a thread already
[items addObject:[self replyInThreadMenuItemWithEvent:event]];