remove unnecessary map_err

Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
June Clementine Strawberry 2025-03-06 20:10:32 -05:00
parent 5ad1100e0f
commit fe65648296
No known key found for this signature in database

View file

@ -344,7 +344,7 @@ impl Service {
let insert_lock = self.mutex_insert.lock(&pdu.room_id).await;
let count1 = self.services.globals.next_count()?;
let count1 = self.services.globals.next_count().unwrap();
// Mark as read first so the sending client doesn't get a notification even if
// appending fails
self.services
@ -362,13 +362,12 @@ impl Service {
drop(insert_lock);
// See if the event matches any known pushers
// See if the event matches any known pushers via power level
let power_levels: RoomPowerLevelsEventContent = self
.services
.state_accessor
.room_state_get_content(&pdu.room_id, &StateEventType::RoomPowerLevels, "")
.await
.map_err(|e| err!(Database(warn!("invalid m.room.power_levels event: {e}"))))
.unwrap_or_default();
let sync_pdu = pdu.to_sync_room_event();