jabber: customize a bit
This commit is contained in:
parent
050441703a
commit
55c2915f6c
|
@ -89,7 +89,7 @@ pub async fn run(jid: String, password: String, muc_jid: String) -> Handle {
|
|||
pub fn make_room_message(room_jid: BareJid, text: String) -> Element {
|
||||
let mut message = Message::new(Some(Jid::Bare(room_jid)));
|
||||
message.type_ = MessageType::Groupchat;
|
||||
message.bodies.insert("de".to_string(), Body(text));
|
||||
message.bodies.insert("en".to_string(), Body(text));
|
||||
message.into()
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,7 @@ fn make_join_presence(muc_jid: FullJid) -> Element {
|
|||
let mut presence = Presence::new(PresenceType::None)
|
||||
.with_to(Jid::Full(muc_jid))
|
||||
.with_show(PresenceShow::Dnd);
|
||||
presence.set_status("de".to_string(), "Augen und Ohren nach oben".to_string());
|
||||
presence.set_status("en".to_string(), "Fail incoming".to_string());
|
||||
presence.add_payload(Muc::new());
|
||||
presence.into()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue