Fix mention pills display when coming back to a room with an unsent message

This commit is contained in:
aringenbach
2022-09-05 10:56:50 +02:00
parent 686996d821
commit 32fe42ace0
5 changed files with 4 additions and 18 deletions
+2 -2
View File
@@ -358,7 +358,7 @@
{
// Retrieve the potential message partially typed during last room display.
// Note: We have to wait for viewDidAppear before updating growingTextView (viewWillAppear is too early)
inputToolbarView.textMessage = roomDataSource.partialTextMessage;
inputToolbarView.attributedTextMessage = roomDataSource.partialAttributedTextMessage;
}
if (!hasAppearedOnce)
@@ -3351,7 +3351,7 @@
if (_saveProgressTextInput && roomDataSource)
{
// Store the potential message partially typed in text input
roomDataSource.partialTextMessage = inputToolbarView.textMessage;
roomDataSource.partialAttributedTextMessage = inputToolbarView.attributedTextMessage;
}
[self handleTypingState:typing];