1

Tigase 显示上次看到的信息,表明此人上次被服务器看到的时间。如果未设置,则服务器将其设置为

    protected static final long INITIAL_LAST_SEEN_VAL = 1000l;

谁能告诉我 tigase 服务器如何跟踪最后看到的信息。
谢谢

4

1 回答 1

1

Tigase 每次收到来自该联系人的出席通知时,都会将 roster 元素中的 lastSeen 字段设置为当前时间。文件中的第 1328 行:tigase.xmpp.impl.Presence:

if ((rel != null) && (rel instanceof RosterElement)) {
  ((RosterElement) rel).setLastSeen(System.currentTimeMillis());
}
于 2013-10-29T23:46:58.723 回答