mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-12 05:02:58 +02:00
Sadly, the presence API is worse than I hoped
This commit is contained in:
parent
15826dcb3f
commit
381861ee8e
7 changed files with 69 additions and 19 deletions
|
@ -32,7 +32,7 @@ async function createSpace(guild, kstate) {
|
|||
assert(name)
|
||||
|
||||
const memberCount = guild["member_count"] ?? guild.approximate_member_count ?? 0
|
||||
const enablePresenceByDefault = +(memberCount < 150) // could increase this later on if it doesn't cause any problems
|
||||
const enablePresenceByDefault = +(memberCount < 50) // scary! all active users in a presence-enabled guild will be pinging the server every <30 seconds to stay online
|
||||
const globalAdmins = select("member_power", "mxid", {room_id: "*"}).pluck().all()
|
||||
|
||||
const roomID = await createRoom.postApplyPowerLevels(kstate, async kstate => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue