1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-04 16:38:52 +01:00

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