examples: Updat the autojoin example to use the ruma mono repo.

master
Damir Jelić 2020-07-10 15:30:17 +02:00
parent 62eeb3707f
commit 4ee245dcce
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ use std::{env, process::exit};
use matrix_sdk::{
self,
events::{room::member::MemberEventContent, stripped::StrippedRoomMember},
events::{room::member::MemberEventContent, StrippedStateEventStub},
Client, ClientConfig, EventEmitter, SyncRoom, SyncSettings,
};
use matrix_sdk_common_macros::async_trait;
@ -23,7 +23,7 @@ impl EventEmitter for AutoJoinBot {
async fn on_stripped_state_member(
&self,
room: SyncRoom,
room_member: &StrippedRoomMember,
room_member: &StrippedStateEventStub<MemberEventContent>,
_: Option<MemberEventContent>,
) {
if room_member.state_key != self.client.user_id().await.unwrap() {