Only draft message if allowed (last commit in 2020 :D)

This commit is contained in:
Sebastian Wolf 2020-12-31 19:27:44 +01:00
parent a8ad2a6a22
commit 1e4455482c
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -373,7 +373,9 @@ Page {
}
Component.onDestruction: {
tdLibWrapper.setChatDraftMessage(chatInformation.id, 0, newMessageColumn.replyToMessageId, newMessageTextField.text);
if (chatPage.canSendMessages) {
tdLibWrapper.setChatDraftMessage(chatInformation.id, 0, newMessageColumn.replyToMessageId, newMessageTextField.text);
}
tdLibWrapper.closeChat(chatInformation.id);
}