fn write( map: &Map, key: &[u8], pdu: CanonicalJsonObject, room_id: &RoomId, ) -> Outcome
Writes an event back with its room.
An event whose rooted form fails to serialize is skipped.