From 142257a544b36e60b738e55e5f9f096f1169c389 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 24 May 2017 17:28:39 +0200 Subject: fixup bcb9690 (Roster versioning) --- main/src/ui/chat_input/view.vala | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main') diff --git a/main/src/ui/chat_input/view.vala b/main/src/ui/chat_input/view.vala index 3c5baa41..0887de25 100644 --- a/main/src/ui/chat_input/view.vala +++ b/main/src/ui/chat_input/view.vala @@ -61,6 +61,10 @@ public class View : Box { case "/nick": stream_interactor.get_module(MucManager.IDENTITY).change_nick(conversation.account, conversation.counterpart, token[1]); break; + case "/ping": + Xmpp.Core.XmppStream? stream = stream_interactor.get_stream(conversation.account); + stream.get_module(Xmpp.Xep.Ping.Module.IDENTITY).send_ping(stream, conversation.counterpart.to_string() + "/" + token[1], null); + break; case "/topic": stream_interactor.get_module(MucManager.IDENTITY).change_subject(conversation.account, conversation.counterpart, token[1]); break; -- cgit v1.2.3-70-g09d2