editMessage method
Updates updated on the backend.
messageId is the local/remote ID of the message to replace.
Implementation
@override
Future<DeliveryStatus> editMessage(String messageId, Message updated) async {
if (!_connected) return DeliveryStatus.fail('not connected');
_send({
'type': 'edit',
'payload': {'messageId': messageId, 'message': encodeMessage(updated)},
});
return DeliveryStatus.ok(messageId);
}