mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Fix EntityTimeManager.getTime(): Set recipient JID
Fixes SMACK-716
This commit is contained in:
parent
a89b9301ad
commit
bcdfb5398a
1 changed files with 2 additions and 0 deletions
|
@ -108,6 +108,8 @@ public class EntityTimeManager extends Manager {
|
|||
return null;
|
||||
|
||||
Time request = new Time();
|
||||
// TODO Add Time(Jid) constructor and use this constructor instead
|
||||
request.setTo(jid);
|
||||
Time response = (Time) connection().createPacketCollectorAndSend(request).nextResultOrThrow();
|
||||
return response;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue