Skip to content

Commit e3dc3ec

Browse files
committed
change instant message id type
1 parent 80bd9bb commit e3dc3ec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

v2/internal/utopia/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,12 @@ func (c *UtopiaClient) RejectAuthRequest(pubkey, message string) (bool, error) {
282282
return c.queryResultToBool(reqRejectAuthorizationRequest, params)
283283
}
284284

285-
func (c *UtopiaClient) SendInstantMessage(to string, message string) (uint64, error) {
285+
func (c *UtopiaClient) SendInstantMessage(to string, message string) (string, error) {
286286
params := uMap{
287287
"to": to,
288288
"text": message,
289289
}
290-
return c.queryResultToUInt(reqSendInstantMessage, params)
290+
return c.queryResultToString(reqSendInstantMessage, params)
291291
}
292292

293293
func (c *UtopiaClient) GetContacts(filter string) ([]structs.ContactData, error) {

v2/messenger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ type Client interface {
9090

9191
// SendInstantMessage - send message to contact (PM).
9292
// to - pubkey or uNS entry name
93-
SendInstantMessage(to string, message string) (uint64, error)
93+
SendInstantMessage(to string, message string) (string, error)
9494

9595
// GetContacts - get account contacts.
9696
// params: filter - contact pubkey or nickname

0 commit comments

Comments
 (0)