fix: don't do expensive operation on local /send
This commit is contained in:
parent
c1953efa6b
commit
001d8dc257
2 changed files with 4 additions and 5 deletions
|
@ -218,7 +218,7 @@ pub fn get_actions<'a>(
|
|||
|
||||
let ctx = PushConditionRoomCtx {
|
||||
room_id: pdu.room_id.clone(),
|
||||
member_count: (db.rooms.room_members(&pdu.room_id).count() as u32).into(),
|
||||
member_count: 10_u32.into(), // TODO: get member count efficiently
|
||||
user_display_name: db
|
||||
.users
|
||||
.displayname(&user)?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue