Skip to content
Snippets Groups Projects
Commit cc80200f authored by Jake Taylor's avatar Jake Taylor
Browse files

update comments for MessageReceivedCallback

parent cfb301bb
No related branches found
No related tags found
1 merge request!67fix for latest client release
......@@ -25,7 +25,8 @@ import (
// MessageReceivedCallback is called any time a message is received or updated.
//
// update is true if the row is old and was edited.
// messageUpdate is true if the Message already exists and was edited.
// conversationUpdate is true if the Conversation was created or modified.
type MessageReceivedCallback func(uuid uint64, pubKey ed25519.PublicKey,
messageUpdate, conversationUpdate bool)
......
......@@ -190,8 +190,9 @@ func NewDMClientWithIndexedDb(_ js.Value, args []js.Value) any {
// returned as an int and the channelID as a Uint8Array. The row in the
// database that was updated can be found using the UUID. The channel ID is
// provided so that the recipient can filter if they want to the processes
// the update now or not. An "update" bool is present which tells you if
// the row is new or if it is an edited old row
// the update now or not. messageUpdate is true if the Message already
// exists and was edited. conversationUpdate is true if the Conversation
// was created or modified.
//
// Returns a promise:
// - Resolves to a Javascript representation of the [DMClient] object.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment