Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
wmorrison #1
Member since Dec 2015 · 50 posts · Location: Kingston, Jamaica
Group memberships: Members
Show profile · Link to this post
Subject: XEP-0184  Message Delivery Receipt
Hello,
     
I am trying the delivery receipt feature of matrix.  I am sending a request receipt with the message as follows:

  1. _outMessage.Type = MessageType.Chat;
  2. _outMessage.To = _jid;
  3. _outMessage.Body = messageText;
  4. _outMessage.Chatstate = Chatstate.Active;
  5. _outMessage.RequestReceipt();

In the onMessage event of the recipient I am seeing the receipt.  I then send a delivery receipt back as follows:

  1. var sendReply = new Matrix.Xmpp.Client.Message(e.Message.From);
  2. sendReply.DeliveryReceipt(e.Message.Id);
  3. _xmppClient.Send(sendReply);

The onMessage event of the initiator of the message is not firing signaling that the delivery receipt message was received.

Not sure what should happen.

Regards,
Will
This post was edited 3 times, last on 2016-06-07, 12:03 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Your code looks fine, are you setting the correct recipient on the Delivery receipt message? Otherwise I have no idea why OnMessage should not fire.

Alex
Avatar
wmorrison #3
Member since Dec 2015 · 50 posts · Location: Kingston, Jamaica
Group memberships: Members
Show profile · Link to this post
Hi Alex,
   My bad, I have a if condition that was preventing that part of the onMessage event to fire.  All is well so this works.
Thanks again,

Regards,
Will
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:
Forum: MatriX RSS