Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
wmorrison #1
Member since Dec 2015 · 50 posts · Location: Kingston, Jamaica
Group memberships: Members
Show profile · Link to this post
Subject: XEP-0085
Hi Alex,
   Search the Forum has you suggested and found this:

XEP-0085: Chat State Notifications is what you are looking for.

To send a composing state with your message (user is typing) use the following code:

  1. var msg = new Message() {To = "user@server.com", Type = MessageType.chat};
  2. msg.Chatstate = Matrix.Xmpp.Chatstates.Chatstate.composing;


The question I have is: What event is triggered on the recipient of the message?  Also what event is triggered on the sender with a reply?

Regards,
Will
This post was edited 2 times, last on 2016-05-31, 09:53 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
OnMessage event.
On the receiving side you just check if the message contains chat state notifications.

Alex
Avatar
wmorrison #3
Member since Dec 2015 · 50 posts · Location: Kingston, Jamaica
Group memberships: Members
Show profile · Link to this post
Thanks, I will try and post an update
Avatar
wmorrison #4
Member since Dec 2015 · 50 posts · Location: Kingston, Jamaica
Group memberships: Members
Show profile · Link to this post
Hi Alex,

It works as described for the chatstate. 

Now I am trying the delivery receipt.  I am testing my app with PSI but I am not sure how to send a receive receipt from PSI.  I am sending a request receipt on my messages from my app
  1.  _outMessage.Type = MessageType.Chat;
  2.             _outMessage.To = _jid;
  3.             _outMessage.Body = messageText;
  4.             _outMessage.Chatstate = Chatstate.Active;
  5.             _outMessage.RequestReceipt();

and I am seeing this in PSI:

  1. <message from="15555215554@adminpc/15555215554" type="chat" to="18763226944@adminpc" id="MX_6">
  2. <body>kljlkjlkjlkjlkjh</body>
  3. <active xmlns="http://jabber.org/protocol/chatstates"/>
  4. <request xmlns="urn:xmpp:receipts"/>
  5. </message>

It reaches PSI, but PSI is not sending a receive receipt back to my app.  Not sure what to do.

Regards
Will
This post was edited 2 times, last on 2016-06-01, 10:02 by Alex.
Avatar
Alex #5
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Don't think PSI supports message receipts for chats.
You have to test with a client which supports it, or your own client.

Please don't mix threads with different topics.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: