RoomVC: When replying, use a "Reply" button instead of "Send"

This commit is contained in:
manuroe
2019-04-30 17:27:57 +02:00
parent d303c686a8
commit 106c10a45d
4 changed files with 31 additions and 0 deletions

View File

@@ -160,6 +160,26 @@
_sendMode = sendMode;
[self updatePlaceholder];
[self updateToolbarButtonLabel];
}
- (void)updateToolbarButtonLabel
{
NSString *title;
switch (_sendMode)
{
case RoomInputToolbarViewSendModeReply:
title = NSLocalizedStringFromTable(@"room_action_reply", @"Vector", nil);
break;
default:
title = [NSBundle mxk_localizedStringForKey:@"send"];
break;
}
[self.rightInputToolbarButton setTitle:title forState:UIControlStateNormal];
[self.rightInputToolbarButton setTitle:title forState:UIControlStateHighlighted];
}
- (void)updatePlaceholder