forked from lavina/lavina
1
0
Fork 0
This commit is contained in:
Nikita Vilunov 2023-10-14 21:13:49 +02:00
parent 4929da3f05
commit f20658559c
1 changed files with 1 additions and 3 deletions

View File

@ -19,9 +19,7 @@ impl<'a> XmppConnection<'a> {
}) = m.to
{
if server.0.as_ref() == "rooms.localhost" && m.r#type == MessageType::Groupchat {
self.user_handle
.send_message(RoomId::from(name.0.clone())?, m.body.clone().into())
.await?;
self.user_handle.send_message(RoomId::from(name.0.clone())?, m.body.clone().into()).await?;
Message::<()> {
to: Some(Jid {
name: Some(self.user.xmpp_name.clone()),