Skip to main content

Module redact

Module redact 

Source
Expand description

Takes a redacted event back out of the unread counts it raised.

The counters only ever grow on append and drop to zero on a receipt, so a redacted event would otherwise stay counted until the user reads past it.

Re-exportsΒ§

use std::fmt::Debug; πŸ”’
use std::fmt::Debug; πŸ”’
use std::sync::Arc; πŸ”’
use futures::StreamExt; πŸ”’
use futures::TryStreamExt; πŸ”’
use futures::future::join; πŸ”’
use ruma::CanonicalJsonObject; πŸ”’
use ruma::EventId; πŸ”’
use ruma::RoomId; πŸ”’
use ruma::UserId; πŸ”’
use ruma::api::Direction; πŸ”’
use ruma::events::relation::RelationType; πŸ”’
use ruma::push::Action; πŸ”’
use serde::Serialize; πŸ”’
use serde::Serialize; πŸ”’
use tuwunel_core::debug_warn; πŸ”’
use tuwunel_core::implement; πŸ”’
use tuwunel_core::utils::BoolExt; πŸ”’
use tuwunel_core::utils::stream::TryReadyExt; πŸ”’
use tuwunel_core::utils::stream::automatic_width; πŸ”’
use tuwunel_database::Deserialized; πŸ”’
use tuwunel_database::Map; πŸ”’
use tuwunel_matrix::event::Event; πŸ”’
use tuwunel_matrix::event::RelationTypeEqual; πŸ”’
use tuwunel_matrix::pdu::Count; πŸ”’
use tuwunel_matrix::pdu::Pdu; πŸ”’
use tuwunel_matrix::pdu::PduId; πŸ”’
use tuwunel_matrix::pdu::RawPduId; πŸ”’
use super::CountMutex; πŸ”’
use super::Notified; πŸ”’
use crate::rooms::short::ShortRoomId; πŸ”’

StructsΒ§

Counter πŸ”’
One of the user’s two counters, with the lock that guards it.
Redacted πŸ”’
Where a redacted event was counted, the same for every recipient.

Type AliasesΒ§

Raises πŸ”’
Tells whether an action raises a counter.