2019-06-29 08:12:45 +10:00
|
|
|
function onAccountUpdated(user_id) {
|
2019-07-05 06:01:44 +10:00
|
|
|
accounts.append({"userId": user_id})
|
2019-06-29 08:12:45 +10:00
|
|
|
}
|
|
|
|
|
2019-07-03 03:59:52 +10:00
|
|
|
function onAccountDeleted(user_id) {
|
2019-07-05 06:01:44 +10:00
|
|
|
accounts.popWhere({"userId": user_id}, 1)
|
2019-06-29 08:12:45 +10:00
|
|
|
}
|
|
|
|
|
|
|
|
function onUserUpdated(user_id, display_name, avatar_url, status_message) {
|
2019-07-05 06:01:44 +10:00
|
|
|
users.upsert({"userId": user_id}, {
|
2019-06-29 08:12:45 +10:00
|
|
|
"userId": user_id,
|
|
|
|
"displayName": display_name,
|
|
|
|
"avatarUrl": avatar_url,
|
|
|
|
"statusMessage": status_message
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
function onDeviceUpdated(user_id, device_id, ed25519_key, trust, display_name,
|
|
|
|
last_seen_ip, last_seen_date) {
|
|
|
|
}
|
|
|
|
|
|
|
|
function onDeviceDeleted(user_id, device_id) {
|
|
|
|
}
|