Correct use of clear_draft field in inputMessageText
clear_draft
property should be true
only when sending a text message from the ordinary input field, all other ways to send text messages should set this property to false
, otherwise the chat draft is deleted, while it should not. Actual behavior: always true
(except with draftMessage
, where it it false but it also get ignored by the server).
I'd put false
as default and set it true
only when needed (ordinary text area).
Actually the only other way to send a text message is while forwarding another message, in the forwarding Dialog, as an additional text.
Another future way could be through notifications (like messaging app does). No other ways came to my mind.
Forwarding a message (without additional text) isn't affected by this issue.