Save composer state as right user when using alias

If the chat was opened under e.g. "@user1:example.org", but the
composer text is "o abc" where "o" is a composer alias for
"@other_account:example.org", save the composer text to state.json as
"@user1:example.org" and not the alias user.
This commit is contained in:
miruka 2020-08-23 17:05:30 -04:00
parent df3f1fb645
commit b83fd63769
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
# TODO
- composer state.json writingUserId problem?
- model not in list error in the onri test room
- refresh server list button
- global presence control

View File

@ -102,7 +102,7 @@ HTextArea {
saveName: "composer"
saveId: [chat.roomId, writingUserId]
saveId: [chat.roomId, chat.userId]
enabled: chat.roomInfo.can_send_messages
disabledText: qsTr("You do not have permission to post in this room")