mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 00:31:24 +01:00
Add wrapper types for short IDs
This commit is contained in:
parent
f1642c92d1
commit
b0f33207fe
28 changed files with 427 additions and 232 deletions
|
|
@ -1,18 +1,21 @@
|
|||
use ruma::RoomId;
|
||||
|
||||
use crate::{service::rooms::timeline::PduId, Result};
|
||||
use crate::{
|
||||
service::rooms::{short::ShortRoomId, timeline::PduId},
|
||||
Result,
|
||||
};
|
||||
|
||||
pub(crate) trait Data: Send + Sync {
|
||||
fn index_pdu(
|
||||
&self,
|
||||
shortroomid: u64,
|
||||
shortroomid: ShortRoomId,
|
||||
pdu_id: &PduId,
|
||||
message_body: &str,
|
||||
) -> Result<()>;
|
||||
|
||||
fn deindex_pdu(
|
||||
&self,
|
||||
shortroomid: u64,
|
||||
shortroomid: ShortRoomId,
|
||||
pdu_id: &PduId,
|
||||
message_body: &str,
|
||||
) -> Result<()>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue