diff --git a/indexedDb/worker/dm/init.go b/indexedDb/worker/dm/init.go index 14b72acf0bc443be3b763b2249fdbab3b48b4499..42b6520f41e763eb36022518be020bbf39749309 100644 --- a/indexedDb/worker/dm/init.go +++ b/indexedDb/worker/dm/init.go @@ -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) diff --git a/wasm/dm.go b/wasm/dm.go index 70b51c00e872c6ba299df5054a4ec84fdef4e31f..27d1e81dfc3fcaac51bdd91d6ace2b262038cb3e 100644 --- a/wasm/dm.go +++ b/wasm/dm.go @@ -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.