xmpp: *Message events now include an optional id
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
d7a1cd71a9
commit
c759516508
2 changed files with 17 additions and 7 deletions
|
|
@ -51,7 +51,7 @@ async fn main() -> Result<(), Option<()>> {
|
|||
Event::ContactChanged(contact) => {
|
||||
println!("Contact {} changed.", contact.jid);
|
||||
}
|
||||
Event::ChatMessage(jid, body) => {
|
||||
Event::ChatMessage(_id, jid, body) => {
|
||||
println!("Message from {}: {}", jid, body.0);
|
||||
}
|
||||
Event::JoinRoom(jid, conference) => {
|
||||
|
|
@ -81,7 +81,7 @@ async fn main() -> Result<(), Option<()>> {
|
|||
Event::RoomLeft(jid) => {
|
||||
println!("Left room {}.", jid);
|
||||
}
|
||||
Event::RoomMessage(jid, nick, body) => {
|
||||
Event::RoomMessage(_id, jid, nick, body) => {
|
||||
println!("Message in room {} from {}: {}", jid, nick, body.0);
|
||||
}
|
||||
Event::AvatarRetrieved(jid, path) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue