mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 22:26:59 +02:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user