Remove another unnecessary use of an event enum

This commit is contained in:
Jonas Platte 2022-02-12 01:58:36 +01:00
parent 583ec51f9f
commit 5db4c001d1
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67
3 changed files with 11 additions and 10 deletions

View file

@ -2,7 +2,8 @@ use crate::{database::abstraction::Tree, utils, Error, Result};
use ruma::{
events::{
presence::{PresenceEvent, PresenceEventContent},
AnyEphemeralRoomEvent, SyncEphemeralRoomEvent,
receipt::ReceiptEvent,
SyncEphemeralRoomEvent,
},
presence::PresenceState,
serde::Raw,
@ -31,7 +32,7 @@ impl RoomEdus {
&self,
user_id: &UserId,
room_id: &RoomId,
event: AnyEphemeralRoomEvent,
event: ReceiptEvent,
globals: &super::super::globals::Globals,
) -> Result<()> {
let mut prefix = room_id.as_bytes().to_vec();