remove unnecessary map_err
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
5ad1100e0f
commit
fe65648296
1 changed files with 2 additions and 3 deletions
|
@ -344,7 +344,7 @@ impl Service {
|
||||||
|
|
||||||
let insert_lock = self.mutex_insert.lock(&pdu.room_id).await;
|
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
|
// Mark as read first so the sending client doesn't get a notification even if
|
||||||
// appending fails
|
// appending fails
|
||||||
self.services
|
self.services
|
||||||
|
@ -362,13 +362,12 @@ impl Service {
|
||||||
|
|
||||||
drop(insert_lock);
|
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
|
let power_levels: RoomPowerLevelsEventContent = self
|
||||||
.services
|
.services
|
||||||
.state_accessor
|
.state_accessor
|
||||||
.room_state_get_content(&pdu.room_id, &StateEventType::RoomPowerLevels, "")
|
.room_state_get_content(&pdu.room_id, &StateEventType::RoomPowerLevels, "")
|
||||||
.await
|
.await
|
||||||
.map_err(|e| err!(Database(warn!("invalid m.room.power_levels event: {e}"))))
|
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
||||||
let sync_pdu = pdu.to_sync_room_event();
|
let sync_pdu = pdu.to_sync_room_event();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue