mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Add thread option to an event if the labs setting enabled
This commit is contained in:
parent
1e7c9bbd72
commit
d80aba0793
3 changed files with 3 additions and 3 deletions
|
@ -378,7 +378,7 @@ Tap the + to start adding people.";
|
||||||
"room_event_action_cancel_download" = "Cancel Download";
|
"room_event_action_cancel_download" = "Cancel Download";
|
||||||
"room_event_action_view_encryption" = "Encryption Information";
|
"room_event_action_view_encryption" = "Encryption Information";
|
||||||
"room_event_action_reply" = "Reply";
|
"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_edit" = "Edit";
|
||||||
"room_event_action_reaction_show_all" = "Show all";
|
"room_event_action_reaction_show_all" = "Show all";
|
||||||
"room_event_action_reaction_show_less" = "Show less";
|
"room_event_action_reaction_show_less" = "Show less";
|
||||||
|
|
|
@ -2927,7 +2927,7 @@ public class VectorL10n: NSObject {
|
||||||
public static var roomEventActionReply: String {
|
public static var roomEventActionReply: String {
|
||||||
return VectorL10n.tr("Vector", "room_event_action_reply")
|
return VectorL10n.tr("Vector", "room_event_action_reply")
|
||||||
}
|
}
|
||||||
/// Reply in thread
|
/// Thread
|
||||||
public static var roomEventActionReplyInThread: String {
|
public static var roomEventActionReplyInThread: String {
|
||||||
return VectorL10n.tr("Vector", "room_event_action_reply_in_thread")
|
return VectorL10n.tr("Vector", "room_event_action_reply_in_thread")
|
||||||
}
|
}
|
||||||
|
|
|
@ -5931,7 +5931,7 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
|
||||||
|
|
||||||
[items addObject:[self copyMenuItemWithEvent:event andCell:cell]];
|
[items addObject:[self copyMenuItemWithEvent:event andCell:cell]];
|
||||||
[items addObject:[self replyMenuItemWithEvent:event]];
|
[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
|
// add "reply in thread" option only if not a thread already
|
||||||
[items addObject:[self replyInThreadMenuItemWithEvent:event]];
|
[items addObject:[self replyInThreadMenuItemWithEvent:event]];
|
||||||
|
|
Loading…
Reference in a new issue