update the presence plugin to match xmpp-parsers 0.5.0
This commit is contained in:
parent
4be13c1c01
commit
0d7074eb6e
3 changed files with 5 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ use std::collections::BTreeMap;
|
|||
use error::Error;
|
||||
use plugin::PluginProxy;
|
||||
|
||||
pub use xmpp_parsers::presence::{Presence, PresenceType as Type, Show};
|
||||
pub use xmpp_parsers::presence::{Presence, Type, Show};
|
||||
|
||||
pub struct PresencePlugin {
|
||||
proxy: PluginProxy,
|
||||
|
|
@ -16,7 +16,7 @@ impl PresencePlugin {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn set_presence(&self, type_: Type, show: Option<Show>, status: Option<String>) -> Result<(), Error> {
|
||||
pub fn set_presence(&self, type_: Type, show: Show, status: Option<String>) -> Result<(), Error> {
|
||||
let presence = Presence {
|
||||
from: None,
|
||||
to: None,
|
||||
|
|
|
|||
Loading…
Reference in a new issue