From e3dc3ec9a62575a8d3d91ff519a15e878deb6c91 Mon Sep 17 00:00:00 2001 From: Sagleft Date: Thu, 11 Apr 2024 10:56:46 +0300 Subject: [PATCH] change instant message id type --- v2/internal/utopia/client.go | 4 ++-- v2/messenger.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/internal/utopia/client.go b/v2/internal/utopia/client.go index a53fab1..65e3c21 100644 --- a/v2/internal/utopia/client.go +++ b/v2/internal/utopia/client.go @@ -282,12 +282,12 @@ func (c *UtopiaClient) RejectAuthRequest(pubkey, message string) (bool, error) { return c.queryResultToBool(reqRejectAuthorizationRequest, params) } -func (c *UtopiaClient) SendInstantMessage(to string, message string) (uint64, error) { +func (c *UtopiaClient) SendInstantMessage(to string, message string) (string, error) { params := uMap{ "to": to, "text": message, } - return c.queryResultToUInt(reqSendInstantMessage, params) + return c.queryResultToString(reqSendInstantMessage, params) } func (c *UtopiaClient) GetContacts(filter string) ([]structs.ContactData, error) { diff --git a/v2/messenger.go b/v2/messenger.go index 73c1e9c..5cb6021 100644 --- a/v2/messenger.go +++ b/v2/messenger.go @@ -90,7 +90,7 @@ type Client interface { // SendInstantMessage - send message to contact (PM). // to - pubkey or uNS entry name - SendInstantMessage(to string, message string) (uint64, error) + SendInstantMessage(to string, message string) (string, error) // GetContacts - get account contacts. // params: filter - contact pubkey or nickname