diff options
author | Vitaly Takmazov | 2018-10-23 17:48:25 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-23 17:48:25 +0300 |
commit | 8e83a22012c2bee323eeeb3ae1384ac488741ebf (patch) | |
tree | 947f307ce94e926938b23427e60346e0c5d21c11 /juick-server/src/main/java/com/juick/server/XMPPConnection.java | |
parent | cab7e26aea1ac9518ff6c625340de2b809eaed50 (diff) |
Last seen
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/XMPPConnection.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/XMPPConnection.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/juick-server/src/main/java/com/juick/server/XMPPConnection.java b/juick-server/src/main/java/com/juick/server/XMPPConnection.java index d03251a3..9c0c09e1 100644 --- a/juick-server/src/main/java/com/juick/server/XMPPConnection.java +++ b/juick-server/src/main/java/com/juick/server/XMPPConnection.java @@ -497,6 +497,11 @@ public class XMPPConnection implements StanzaListener, NotificationListener { int uid_to = 0; if (!toJuick) { uid_to = userService.getUIDbyName(username); + } else { + User visitor = userService.getUserByJID(p.getFrom().asBareJid().toEscapedString()); + if (visitor != null) { + userService.updateLastSeen(visitor); + } } if (toJuick || uid_to > 0) { |