summaryrefslogtreecommitdiff
path: root/protocols/Tox/src/tox_contacts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Tox/src/tox_contacts.cpp')
-rw-r--r--protocols/Tox/src/tox_contacts.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_contacts.cpp b/protocols/Tox/src/tox_contacts.cpp
index ea08d4338d..4bb4c583a2 100644
--- a/protocols/Tox/src/tox_contacts.cpp
+++ b/protocols/Tox/src/tox_contacts.cpp
@@ -118,9 +118,13 @@ void CToxProto::LoadContactList()
tox_get_name(tox, friends[i], &username[0]);
std::string nick(username.begin(), username.end());
setWString(hContact, "Nick", ptrW(Utf8DecodeW(nick.c_str())));
- }
- //tox_get_last_online
+ uint64_t timestamp = tox_get_last_online(tox, friends[i]);
+ if (timestamp)
+ {
+ setDword(hContact, "LastEventDateTS", timestamp);
+ }
+ }
}
}
}