mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
fix: Only increment mindepth on state events
This commit is contained in:
1 parent
b63eaa81d4
commit
d2c183baeb
1 file changed
+1
-1
@@ -388,7 +388,7 @@ impl super::Service {
|
|||||||
|
|
||||||
// Event has passed all auth/stateres checks
|
// Event has passed all auth/stateres checks
|
||||||
drop(state_lock);
|
drop(state_lock);
|
||||||
if incoming_pdu.depth > min_depth {
|
if incoming_pdu.depth > min_depth && incoming_pdu.state_key().is_some() {
|
||||||
self.services
|
self.services
|
||||||
.metadata
|
.metadata
|
||||||
.set_mindepth(room_id, incoming_pdu.depth.into());
|
.set_mindepth(room_id, incoming_pdu.depth.into());
|
||||||
|
|||||||
Reference in new issue
Block a user