Rather than implementing the critical state resolution algorithm that's the core of Matrix, they just directly insert the latest state into the database. That'll instantly lead to diverging views of the room and incompatibility with every other implementation - and it's also a massive security hole.


  // Update room state if this is a state event
  if (event.state_key !== undefined) {
    await db.prepare(
      `INSERT OR REPLACE INTO room_state (room_id, event_type, state_key, event_id)
       VALUES (?, ?, ?, ?)`
    ).bind(event.room_id, event.type, event.state_key, event.event_id).run();
  }
0

If you have a fediverse account, you can quote this note from your own instance. Search https://tech.lgbt/users/JadedBlueEyes/statuses/115967825954233436 on your instance and quote it. (Note that quoting is not supported in Mastodon.)