move read_receipt feature up one level out of rooms.edus.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
mod presence;
|
||||
mod read_receipt;
|
||||
|
||||
use crate::{database::KeyValueDatabase, service};
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ mod lazy_load;
|
||||
mod metadata;
|
||||
mod outlier;
|
||||
mod pdu_metadata;
|
||||
mod read_receipt;
|
||||
mod search;
|
||||
mod short;
|
||||
mod state;
|
||||
|
||||
@@ -4,7 +4,7 @@ use ruma::{events::receipt::ReceiptEvent, serde::Raw, CanonicalJsonObject, Owned
|
||||
|
||||
use crate::{database::KeyValueDatabase, service, services, utils, Error, Result};
|
||||
|
||||
impl service::rooms::edus::read_receipt::Data for KeyValueDatabase {
|
||||
impl service::rooms::read_receipt::Data for KeyValueDatabase {
|
||||
fn readreceipt_update(&self, user_id: &UserId, room_id: &RoomId, event: ReceiptEvent) -> Result<()> {
|
||||
let mut prefix = room_id.as_bytes().to_vec();
|
||||
prefix.push(0xFF);
|
||||
Reference in New Issue
Block a user