Warn unknown devices: Show an alert when sending a message while there are unknown devices in the room.

Show the error in the room activities view too.
This commit is contained in:
manuroe
2017-02-14 11:01:38 +01:00
parent 9bce35f4e8
commit fa0c374e66
4 changed files with 70 additions and 11 deletions
@@ -62,7 +62,7 @@
if (!self.messageTextView.isHidden)
{
// Compute the required height to display the text in messageTextView
CGFloat height = [self.messageTextView sizeThatFits:self.messageTextView.frame.size].height + 20;
CGFloat height = [self.messageTextView sizeThatFits:self.messageTextView.frame.size].height + 20; // 20 is the top and bottom margins in xib
height = MAX(xibMainHeightConstraint, height);
if (height != self.mainHeightConstraint.constant)
@@ -107,12 +107,10 @@
xibMainHeightConstraint = self.mainHeightConstraint.constant;
}
- (void)displayUnsentMessagesNotificationWithResendLink:(void (^)(void))onResendLinkPressed andIconTapGesture:(void (^)(void))onIconTapGesture
- (void)displayUnsentMessagesNotification:(NSString*)notification withResendLink:(void (^)(void))onResendLinkPressed andIconTapGesture:(void (^)(void))onIconTapGesture
{
[self reset];
NSString *notification = NSLocalizedStringFromTable(@"room_unsent_messages_notification", @"Vector", nil);
if (onResendLinkPressed)
{
NSString *resendLink = NSLocalizedStringFromTable(@"room_prompt_resend", @"Vector", nil);