delete method
Deletes a message from a room.
Senders can always delete their own messages; admins/owners can
delete anyone's. The backend tombstones the message (it stays in
the timeline marked as deleted, so reply chains keep working) and
emits MessageDeletedEvent. Hard removal is not exposed via the
SDK.
Implementation
@override
Future<ChatResult<void>> delete(String roomId, String messageId) async {
_client._messages[roomId]?.removeWhere((m) => m.id == messageId);
return const ChatSuccess(null);
}