From e2261b80b6f413f58f0d20fa212bff7c38ba44b8 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 28 May 2020 20:59:36 +0300 Subject: [PATCH] Include whatsapp user ID in provisioning API ping response --- provisioning.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/provisioning.go b/provisioning.go index 287d08d..4f06d8d 100644 --- a/provisioning.go +++ b/provisioning.go @@ -26,8 +26,9 @@ import ( "github.com/gorilla/websocket" log "maunium.net/go/maulogger/v2" - whatsappExt "maunium.net/go/mautrix-whatsapp/whatsapp-ext" "maunium.net/go/mautrix/id" + + whatsappExt "maunium.net/go/mautrix-whatsapp/whatsapp-ext" ) type ProvisioningAPI struct { @@ -236,6 +237,7 @@ func (prov *ProvisioningAPI) Ping(w http.ResponseWriter, r *http.Request) { wa := map[string]interface{}{ "has_session": user.Session != nil, "management_room": user.ManagementRoom, + "jid": user.JID, "conn": nil, "ping": nil, }