mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-05 12:41:08 +01:00
Remove decorators for "Legacy Delayed Delivery"
(aka. XEP-91) in favor of Delayed Delivery (XEP-203) SMACK-578
This commit is contained in:
parent
37279eaa06
commit
fdaf7940fb
13 changed files with 259 additions and 365 deletions
|
|
@ -41,6 +41,7 @@ import org.jivesoftware.smack.test.SmackTestCase;
|
|||
import org.jivesoftware.smackx.Form;
|
||||
import org.jivesoftware.smackx.FormField;
|
||||
import org.jivesoftware.smackx.ServiceDiscoveryManager;
|
||||
import org.jivesoftware.smackx.delay.DelayInformationManager;
|
||||
import org.jivesoftware.smackx.packet.DelayInformation;
|
||||
import org.jivesoftware.smackx.packet.DiscoverInfo;
|
||||
import org.jivesoftware.smackx.packet.XHTMLExtension;
|
||||
|
|
@ -124,7 +125,7 @@ public class MultiUserChatTest extends SmackTestCase {
|
|||
// Get first historic message
|
||||
msg = muc2.nextMessage(1000);
|
||||
assertNotNull("First message is null", msg);
|
||||
DelayInformation delay = (DelayInformation) msg.getExtension("x", "jabber:x:delay");
|
||||
DelayInformation delay = DelayInformationManager.getDelayInformation(msg);
|
||||
assertNotNull("Message contains no delay information", delay);
|
||||
SimpleDateFormat UTC_FORMAT = new SimpleDateFormat("yyyyMMdd'T'HH:mm:ss");
|
||||
UTC_FORMAT.setTimeZone(TimeZone.getDefault());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue