Skip to content

Commit

Permalink
Fix crash when opening rooms where the current user doesn't have perm…
Browse files Browse the repository at this point in the history
…ission to post messages.
  • Loading branch information
stefanceriu committed May 17, 2022
1 parent b5ddb39 commit e17630f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,4 +360,9 @@ typedef enum : NSUInteger
*/
- (void)pasteText:(NSString*)text;

/**
The current attributed text message in message composer.
*/
@property (nonatomic) NSAttributedString *attributedTextMessage;

@end
5 changes: 0 additions & 5 deletions Riot/Modules/Room/Views/InputToolbar/RoomInputToolbarView.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ typedef NS_ENUM(NSUInteger, RoomInputToolbarViewSendMode)
*/
@property (nonatomic, weak, readonly) UIButton *attachMediaButton;

/**
The current attributed text message in message composer.
*/
@property (nonatomic) NSAttributedString *attributedTextMessage;

@property (nonatomic, readonly, nonnull) UIFont *textDefaultFont;

/**
Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-6165.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed crash when opening rooms where the current user doesn't have permission to post messages.

0 comments on commit e17630f

Please sign in to comment.