var jid = new jabberwerx.JID('valid@email.com');
var entityCache = new jabberwerx.ClientEntityCache();
var entity = entityCache.entity(jid);
if (!entity) {
entity = new jabberwerx.TemporaryEntity(jid);
entity.cache = entityCache;
}
After this code reaches the end of this block, entity is not null. The user I set has groups assigned in the messenger admin tool, but entity.getGroups() always returns an empty array. What am I missing here?