Skip to content

Commit

Permalink
change instant message id type
Browse files Browse the repository at this point in the history
  • Loading branch information
Sagleft committed Apr 11, 2024
1 parent 80bd9bb commit e3dc3ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions v2/internal/utopia/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion v2/messenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3dc3ec

Please sign in to comment.