aboutsummaryrefslogtreecommitdiff
path: root/libdino/src
diff options
context:
space:
mode:
authorDavid Plassmann <slaveriq@users.noreply.github.com>2018-01-09 01:06:32 +0100
committerfiaxh <fiaxh@users.noreply.github.com>2018-01-09 01:06:32 +0100
commit5d6cf9d8d56f9f3f781d1e6afa149f736868a108 (patch)
treeb69cbc3398f845e7e0b612fc0d919125980380a7 /libdino/src
parent2e041e2984fa303034a9736918631935c52ac03a (diff)
downloaddino-5d6cf9d8d56f9f3f781d1e6afa149f736868a108.tar.gz
dino-5d6cf9d8d56f9f3f781d1e6afa149f736868a108.zip
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
Diffstat (limited to 'libdino/src')
-rw-r--r--libdino/src/service/muc_manager.vala5
1 files changed, 5 insertions, 0 deletions
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());