mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-20 01:01:24 +01:00
Add PduId wrapper struct
Death to Vec<u8>
This commit is contained in:
parent
341f4213d0
commit
26322d5a95
15 changed files with 110 additions and 71 deletions
|
|
@ -3,7 +3,7 @@ use ruma::{
|
|||
UserId,
|
||||
};
|
||||
|
||||
use crate::{PduEvent, Result};
|
||||
use crate::{service::rooms::timeline::PduId, PduEvent, Result};
|
||||
|
||||
pub(crate) trait Data: Send + Sync {
|
||||
#[allow(clippy::type_complexity)]
|
||||
|
|
@ -17,11 +17,11 @@ pub(crate) trait Data: Send + Sync {
|
|||
|
||||
fn update_participants(
|
||||
&self,
|
||||
root_id: &[u8],
|
||||
root_id: &PduId,
|
||||
participants: &[OwnedUserId],
|
||||
) -> Result<()>;
|
||||
fn get_participants(
|
||||
&self,
|
||||
root_id: &[u8],
|
||||
root_id: &PduId,
|
||||
) -> Result<Option<Vec<OwnedUserId>>>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue