mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 04:06:54 +00:00
fix: Fix join rule evaluation for servers again
Reviewed-by: timedout <git@nexy7574.co.uk> Reviewed-by: Jade Ellis <jade@ellis.link>
This commit is contained in:
1 file changed
+3
-3
@@ -901,7 +901,7 @@ impl Service {
|
||||
.server_in_room(self.services.globals.server_name(), condition_room)
|
||||
.await
|
||||
{
|
||||
let is_joined = match entity {
|
||||
let is_joined_to_condition_room = match entity {
|
||||
| JoinConditionEntity::User(user_id) =>
|
||||
self.services
|
||||
.state_cache
|
||||
@@ -910,11 +910,11 @@ impl Service {
|
||||
| JoinConditionEntity::Server(server) =>
|
||||
self.services
|
||||
.state_cache
|
||||
.server_in_room(server, room_id)
|
||||
.server_in_room(server, condition_room)
|
||||
.await,
|
||||
};
|
||||
|
||||
if is_joined {
|
||||
if is_joined_to_condition_room {
|
||||
debug!(
|
||||
?entity,
|
||||
?room_id,
|
||||
|
||||
Reference in new issue
Block a user