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.