fix(spaces): use RoleDefinition from core instead of local duplicate

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
ember33 2026-03-17 16:56:11 +01:00
parent 053bdf00da
commit aae610b3d2

View file

@ -6,22 +6,12 @@ use std::{
use async_trait::async_trait;
use conduwuit::Result;
use conduwuit_core::matrix::space_roles::RoleDefinition;
use ruma::{OwnedRoomId, OwnedUserId};
use tokio::sync::RwLock;
use crate::{Dep, rooms};
/// Definition of a role within a space, including its permissions.
#[derive(Clone, Debug)]
pub struct RoleDefinition {
/// Human-readable name of the role.
pub name: String,
/// Set of permission strings granted by this role.
pub permissions: HashSet<String>,
/// Priority for ordering/conflict resolution (higher = more priority).
pub priority: i64,
}
pub struct Service {
#[allow(dead_code)]
services: Services,