Remove unnecessary use of event enum

This commit is contained in:
Jonas Platte 2022-02-12 01:55:53 +01:00
parent 0cec421930
commit 583ec51f9f
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67

View file

@ -7,7 +7,7 @@ use ruma::{
}, },
events::{ events::{
room::member::{MembershipState, RoomMemberEventContent}, room::member::{MembershipState, RoomMemberEventContent},
AnySyncEphemeralRoomEvent, EventType, EventType,
}, },
serde::Raw, serde::Raw,
DeviceId, RoomId, UserId, DeviceId, RoomId, UserId,
@ -656,10 +656,8 @@ async fn sync_helper(
if db.rooms.edus.last_typing_update(&room_id, &db.globals)? > since { if db.rooms.edus.last_typing_update(&room_id, &db.globals)? > since {
edus.push( edus.push(
serde_json::from_str( serde_json::from_str(
&serde_json::to_string(&AnySyncEphemeralRoomEvent::Typing( &serde_json::to_string(&db.rooms.edus.typings_all(&room_id)?)
db.rooms.edus.typings_all(&room_id)?, .expect("event is valid, we just created it"),
))
.expect("event is valid, we just created it"),
) )
.expect("event is valid, we just created it"), .expect("event is valid, we just created it"),
); );