mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-14 19:16:02 -04:00
fix(sdk)!: Remove SyncEvent implementation for InitialStateEvent
Initial state events aren't actually received through sync, they're sent from the client to the server when creating a room. This change makes it impossible to register event handlers for initial state events. Previously, this was allowed, but the event handler was never called.
This commit is contained in:
committed by
Jonas Platte
parent
97f37acb4a
commit
aedbbcdde7
@@ -77,7 +77,6 @@ pub enum EventKind {
|
||||
OriginalState,
|
||||
RedactedState,
|
||||
StrippedState,
|
||||
InitialState,
|
||||
ToDevice,
|
||||
Presence,
|
||||
}
|
||||
@@ -681,14 +680,6 @@ mod static_events {
|
||||
const TYPE: &'static str = C::TYPE;
|
||||
}
|
||||
|
||||
impl<C> SyncEvent for events::InitialStateEvent<C>
|
||||
where
|
||||
C: StaticEventContent + StateEventContent,
|
||||
{
|
||||
const KIND: EventKind = EventKind::InitialState;
|
||||
const TYPE: &'static str = C::TYPE;
|
||||
}
|
||||
|
||||
impl<C> SyncEvent for events::ToDeviceEvent<C>
|
||||
where
|
||||
C: StaticEventContent + ToDeviceEventContent,
|
||||
|
||||
Reference in New Issue
Block a user