mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Fix panic when creating rooms
This commit is contained in:
@@ -201,6 +201,7 @@ where
|
||||
drop(insert_lock);
|
||||
|
||||
// See if the event matches any known pushers via power level
|
||||
if *pdu.kind() != TimelineEventType::RoomCreate {
|
||||
let power_levels = self
|
||||
.services
|
||||
.state_accessor
|
||||
@@ -252,7 +253,9 @@ where
|
||||
{
|
||||
match action {
|
||||
| Action::Notify => notify = true,
|
||||
| Action::SetTweak(Tweak::Highlight(ruma::push::HighlightTweakValue::Yes)) => {
|
||||
| Action::SetTweak(Tweak::Highlight(
|
||||
ruma::push::HighlightTweakValue::Yes,
|
||||
)) => {
|
||||
highlight = true;
|
||||
},
|
||||
| _ => {},
|
||||
@@ -286,6 +289,7 @@ where
|
||||
|
||||
self.db
|
||||
.increment_notification_counts(room_id, notifies, highlights);
|
||||
}
|
||||
|
||||
match *pdu.kind() {
|
||||
| TimelineEventType::RoomRedaction => {
|
||||
|
||||
Reference in New Issue
Block a user