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
4dacd831
Commit
4dacd831
authored
2 years ago
by
Jake Taylor
Browse files
Options
Downloads
Patches
Plain Diff
fixed buildmessage
parent
9eb97267
No related branches found
No related tags found
2 merge requests
!79
Hotfix/dm receive
,
!67
fix for latest client release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indexedDb/impl/dm/implementation.go
+6
-6
6 additions, 6 deletions
indexedDb/impl/dm/implementation.go
with
6 additions
and
6 deletions
indexedDb/impl/dm/implementation.go
+
6
−
6
View file @
4dacd831
...
...
@@ -79,15 +79,15 @@ func (w *wasmModel) joinConversation(nickname string,
// NOTE: ID is not set inside this function because we want to use the
// autoincrement key by default. If you are trying to overwrite an existing
// message, then you need to set it manually yourself.
func
buildMessage
(
messageID
,
parentID
,
text
[]
byte
,
p
ubKey
ed25519
.
Public
Key
,
timestamp
time
.
Time
,
round
id
.
Round
,
mType
dm
.
MessageType
,
codeset
uint8
,
status
dm
.
Status
)
*
Message
{
func
buildMessage
(
messageID
,
parentID
,
text
[]
byte
,
p
artner
Key
,
senderKey
ed25519
.
PublicKey
,
timestamp
time
.
Time
,
round
id
.
Round
,
mType
dm
.
MessageType
,
codeset
uint8
,
status
dm
.
Status
)
*
Message
{
return
&
Message
{
MessageID
:
messageID
,
ConversationPubKey
:
p
ubKey
,
ConversationPubKey
:
p
artnerKey
[
:
]
,
ParentMessageID
:
parentID
,
Timestamp
:
timestamp
,
SenderPubKey
:
pub
Key
[
:
],
SenderPubKey
:
sender
Key
[
:
],
Status
:
uint8
(
status
),
CodesetVersion
:
codeset
,
Text
:
text
,
...
...
@@ -254,7 +254,7 @@ func (w *wasmModel) receiveWrapper(messageID message.ID, parentID *message.ID, n
}
msgToInsert
:=
buildMessage
(
messageID
.
Bytes
(),
parentIdBytes
,
textBytes
,
senderKey
,
timestamp
,
round
.
ID
,
mType
,
codeset
,
status
)
partnerKey
,
senderKey
,
timestamp
,
round
.
ID
,
mType
,
codeset
,
status
)
uuid
,
err
:=
w
.
receiveHelper
(
msgToInsert
,
false
)
if
err
!=
nil
{
...
...
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