From 5d6cf9d8d56f9f3f781d1e6afa149f736868a108 Mon Sep 17 00:00:00 2001 From: David Plassmann Date: Tue, 9 Jan 2018 01:06:32 +0100 Subject: Add support for setting a new Affiliation in a muc (#266) * Added support for setting a new Affiliation in a muc * small changes * fix parameter order --- libdino/src/service/muc_manager.vala | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libdino') diff --git a/libdino/src/service/muc_manager.vala b/libdino/src/service/muc_manager.vala index 7522f2a4..331065f1 100644 --- a/libdino/src/service/muc_manager.vala +++ b/libdino/src/service/muc_manager.vala @@ -83,6 +83,11 @@ public class MucManager : StreamInteractionModule, Object { if (stream != null) stream.get_module(Xep.Muc.Module.IDENTITY).kick(stream, jid.bare_jid.to_string(), nick); } + public void change_affiliation(Account account, Jid jid, string nick, string role) { + Core.XmppStream? stream = stream_interactor.get_stream(account); + if (stream != null) stream.get_module(Xep.Muc.Module.IDENTITY).change_affiliation(stream, jid.bare_jid.to_string(), nick, role); + } + public bool kick_possible(Account account, Jid occupant) { Core.XmppStream? stream = stream_interactor.get_stream(account); if (stream != null) return stream.get_module(Xep.Muc.Module.IDENTITY).kick_possible(stream, occupant.to_string()); -- cgit v1.2.3-70-g09d2