diff --git a/src/bot.rs b/src/bot.rs index 4febe51..30294e4 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -210,6 +210,10 @@ impl Bot { ev: &OriginalRoomMessageEvent, room: &Joined, ) -> Result<()> { + if Some(&*ev.sender) == self.client.user_id() { + return Ok(()); + } + let MessageType::Text(TextMessageEventContent { body, .. }) = &ev.content.msgtype else { return Ok(()); };