Commit 8fdd31bc authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[GATE-154] Fixed chat state notifications to use message type chat.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6868 b35dd754-fafc-0310-a699-88a17e54d16e
parent c2bd9253
...@@ -1472,6 +1472,7 @@ public abstract class BaseTransport implements Component, RosterEventListener { ...@@ -1472,6 +1472,7 @@ public abstract class BaseTransport implements Component, RosterEventListener {
*/ */
public void sendComposingNotification(JID to, JID from) { public void sendComposingNotification(JID to, JID from) {
Message m = new Message(); Message m = new Message();
m.setType(Message.Type.chat);
m.setTo(to); m.setTo(to);
m.setFrom(from); m.setFrom(from);
Element xEvent = m.addChildElement("x", "jabber:x:event"); Element xEvent = m.addChildElement("x", "jabber:x:event");
...@@ -1492,6 +1493,7 @@ public abstract class BaseTransport implements Component, RosterEventListener { ...@@ -1492,6 +1493,7 @@ public abstract class BaseTransport implements Component, RosterEventListener {
*/ */
public void sendComposingPausedNotification(JID to, JID from) { public void sendComposingPausedNotification(JID to, JID from) {
Message m = new Message(); Message m = new Message();
m.setType(Message.Type.chat);
m.setTo(to); m.setTo(to);
m.setFrom(from); m.setFrom(from);
m.addChildElement("paused", CHATSTATES); m.addChildElement("paused", CHATSTATES);
...@@ -1509,6 +1511,7 @@ public abstract class BaseTransport implements Component, RosterEventListener { ...@@ -1509,6 +1511,7 @@ public abstract class BaseTransport implements Component, RosterEventListener {
*/ */
public void sendChatInactiveNotification(JID to, JID from) { public void sendChatInactiveNotification(JID to, JID from) {
Message m = new Message(); Message m = new Message();
m.setType(Message.Type.chat);
m.setTo(to); m.setTo(to);
m.setFrom(from); m.setFrom(from);
m.addChildElement("inactive", CHATSTATES); m.addChildElement("inactive", CHATSTATES);
...@@ -1526,6 +1529,7 @@ public abstract class BaseTransport implements Component, RosterEventListener { ...@@ -1526,6 +1529,7 @@ public abstract class BaseTransport implements Component, RosterEventListener {
*/ */
public void sendChatGoneNotification(JID to, JID from) { public void sendChatGoneNotification(JID to, JID from) {
Message m = new Message(); Message m = new Message();
m.setType(Message.Type.chat);
m.setTo(to); m.setTo(to);
m.setFrom(from); m.setFrom(from);
m.addChildElement("gone", CHATSTATES); m.addChildElement("gone", CHATSTATES);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment