Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xxdk-wasm
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
xxdk-wasm
Commits
cc80200f
Commit
cc80200f
authored
2 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
update comments for MessageReceivedCallback
parent
cfb301bb
No related branches found
No related tags found
1 merge request
!67
fix for latest client release
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indexedDb/worker/dm/init.go
+2
-1
2 additions, 1 deletion
indexedDb/worker/dm/init.go
wasm/dm.go
+3
-2
3 additions, 2 deletions
wasm/dm.go
with
5 additions
and
3 deletions
indexedDb/worker/dm/init.go
+
2
−
1
View file @
cc80200f
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
wasm/dm.go
+
3
−
2
View file @
cc80200f
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment