api: Add server_timestamp to register response.

Since this is currently only useful to interpret presence data, we
send this only if presence is requested.

I'm not sure that server_timestamp is the right name for this field,
but ultimately it should match the main presence API format.
This commit is contained in:
Tim Abbott
2021-05-20 11:01:51 -07:00
committed by Tim Abbott
parent 637c7e297c
commit 2e67b879ed
10 changed files with 27 additions and 6 deletions

View File

@@ -446,7 +446,7 @@ export function initialize_everything() {
const pm_conversations_params = pop_fields("recent_private_conversations");
const presence_params = pop_fields("presences", "initial_servertime");
const presence_params = pop_fields("presences", "server_timestamp");
const stream_data_params = pop_fields(
"subscriptions",