Skip to content

Commit

Permalink
Fixes /issues/5042 - Message composer doesn't follow keyboard when sw…
Browse files Browse the repository at this point in the history
…iping to dismiss.
  • Loading branch information
stefanceriu committed Oct 25, 2021
1 parent fe98559 commit f018c88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Riot/Modules/Room/RoomViewController.xib
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oni-F4-X1U" userLabel="User suggestion container">
<rect key="frame" x="0.0" y="626" width="375" height="0.0"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" placeholder="YES" id="1Cd-cT-gOr"/>
</constraints>
Expand Down
4 changes: 4 additions & 0 deletions Riot/Modules/Room/Views/InputToolbar/RoomInputToolbarView.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ - (void)awakeFromNib
[self updateUIWithTextMessage:nil animated:NO];

self.textView.toolbarDelegate = self;

// Add an accessory view to the text view in order to retrieve keyboard view.
inputAccessoryView = [[UIView alloc] initWithFrame:CGRectZero];
self.textView.inputAccessoryView = inputAccessoryView;
}

- (void)setVoiceMessageToolbarView:(UIView *)voiceMessageToolbarView
Expand Down

0 comments on commit f018c88

Please sign in to comment.