examples: Updat the autojoin example to use the ruma mono repo.
This commit is contained in:
parent
62eeb3707f
commit
4ee245dcce
1 changed files with 2 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue