public void sendDisplayedNotification ( Jid to , String packetID ) throws NotConnectedException , InterruptedException { // Create the message to send Message msg = new Message ( to ) ; // Create a MessageEvent Package and add it to the message MessageEvent messageEvent = new MessageEvent ( ) ; messageEvent . setDisplayed ( true ) ; messageEvent . setStanzaId ( packetID ) ; msg . addExtension ( messageEvent ) ; // Send the packet connection ( ) . sendStanza ( msg ) ; }
Sends the notification that the message was displayed to the sender of the original message .