Use MessageComposition for all kinds of messages from QML
MessageComposition
should probably contain a full Message
object.
-
Message corrections The current message from the MessageModel could be fully loaded into the
MessageComposition
, be edited in there and then resent. This would solve the issue that we currently don't resend the full edited message (I think currently we only send the new body).Corrections are currently done through
MessageModel::correctMessage(replaceId, body, spoilerHint)
MessageModel::sendCorrectedMessageRequested()
MessageHandler::sendCorrectedMessage(Message msg)
and should be done via properties of
MessageComposition
&MessageComposition::send()
. -
!1067 (merged): send "normal" messages without MessageHandler::sendMessage(to, body, isSpoiler, spoilerHint)
Edited by Linus Jahn