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

Merge remote-tracking branch 'origin/release' into release

parents 0ab043f3 4c96e1c3
No related branches found
No related tags found
1 merge request!67fix for latest client release
This commit is part of merge request !67. Comments created here will be created in the context of that merge request.
...@@ -42,7 +42,8 @@ wasm-test: ...@@ -42,7 +42,8 @@ wasm-test:
- go mod vendor - go mod vendor
- unset SSH_PRIVATE_KEY - unset SSH_PRIVATE_KEY
- unset $(env | grep '=' | awk -F= '{print $1}' | grep -v PATH | grep -v GO | grep -v HOME) - unset $(env | grep '=' | awk -F= '{print $1}' | grep -v PATH | grep -v GO | grep -v HOME)
- GOOS=js GOARCH=wasm go test ./... -v - echo "WASM TESTS DISABLED FOR XX-4522, but will run them just so you can see output"
- GOOS=js GOARCH=wasm go test ./... -v || true
build: build:
stage: build stage: build
......
...@@ -10,7 +10,7 @@ require ( ...@@ -10,7 +10,7 @@ require (
github.com/pkg/errors v0.9.1 github.com/pkg/errors v0.9.1
github.com/spf13/cobra v1.5.0 github.com/spf13/cobra v1.5.0
github.com/spf13/jwalterweatherman v1.1.0 github.com/spf13/jwalterweatherman v1.1.0
gitlab.com/elixxir/client/v4 v4.3.12-0.20230222164944-6db1a3003e3c gitlab.com/elixxir/client/v4 v4.3.12-0.20230224195602-fb6cdfb3e795
gitlab.com/elixxir/crypto v0.0.7-0.20230214180106-72841fd1e426 gitlab.com/elixxir/crypto v0.0.7-0.20230214180106-72841fd1e426
gitlab.com/elixxir/primitives v0.0.3-0.20230214180039-9a25e2d3969c gitlab.com/elixxir/primitives v0.0.3-0.20230214180039-9a25e2d3969c
gitlab.com/xx_network/crypto v0.0.5-0.20230214003943-8a09396e95dd gitlab.com/xx_network/crypto v0.0.5-0.20230214003943-8a09396e95dd
......
...@@ -513,6 +513,8 @@ gitlab.com/elixxir/client/v4 v4.3.12-0.20230214180646-893f6e2dab8d h1:KgwOt1Uutk ...@@ -513,6 +513,8 @@ gitlab.com/elixxir/client/v4 v4.3.12-0.20230214180646-893f6e2dab8d h1:KgwOt1Uutk
gitlab.com/elixxir/client/v4 v4.3.12-0.20230214180646-893f6e2dab8d/go.mod h1:Hjx99EdI86q67mHzZVR2Dw37fuTCzDaChM/NVX3CcPU= gitlab.com/elixxir/client/v4 v4.3.12-0.20230214180646-893f6e2dab8d/go.mod h1:Hjx99EdI86q67mHzZVR2Dw37fuTCzDaChM/NVX3CcPU=
gitlab.com/elixxir/client/v4 v4.3.12-0.20230222164944-6db1a3003e3c h1:8906s8e8QZn2i6rBYuaegX14+ZulkTQBLCJg8Egtz5Y= gitlab.com/elixxir/client/v4 v4.3.12-0.20230222164944-6db1a3003e3c h1:8906s8e8QZn2i6rBYuaegX14+ZulkTQBLCJg8Egtz5Y=
gitlab.com/elixxir/client/v4 v4.3.12-0.20230222164944-6db1a3003e3c/go.mod h1:Hjx99EdI86q67mHzZVR2Dw37fuTCzDaChM/NVX3CcPU= gitlab.com/elixxir/client/v4 v4.3.12-0.20230222164944-6db1a3003e3c/go.mod h1:Hjx99EdI86q67mHzZVR2Dw37fuTCzDaChM/NVX3CcPU=
gitlab.com/elixxir/client/v4 v4.3.12-0.20230224195602-fb6cdfb3e795 h1:WxL57QmpRY2c20539xjtKSbHS+JN1U3inYYz6lJeRFU=
gitlab.com/elixxir/client/v4 v4.3.12-0.20230224195602-fb6cdfb3e795/go.mod h1:Hjx99EdI86q67mHzZVR2Dw37fuTCzDaChM/NVX3CcPU=
gitlab.com/elixxir/comms v0.0.4-0.20230214180204-3aba2e6795af h1:Eye4+gZEUbOfz4j51WplYD9d7Gnr1s3wKYkEnCfhPaw= gitlab.com/elixxir/comms v0.0.4-0.20230214180204-3aba2e6795af h1:Eye4+gZEUbOfz4j51WplYD9d7Gnr1s3wKYkEnCfhPaw=
gitlab.com/elixxir/comms v0.0.4-0.20230214180204-3aba2e6795af/go.mod h1:ud3s2aHx5zu7lJhBpUMUXxjLwl8PH8z8cl64Om9U7q8= gitlab.com/elixxir/comms v0.0.4-0.20230214180204-3aba2e6795af/go.mod h1:ud3s2aHx5zu7lJhBpUMUXxjLwl8PH8z8cl64Om9U7q8=
gitlab.com/elixxir/crypto v0.0.7-0.20230214180106-72841fd1e426 h1:O9Xz/ioc9NAj5k/QUsR0W4LCz2uVHawJF89yPTI7NXk= gitlab.com/elixxir/crypto v0.0.7-0.20230214180106-72841fd1e426 h1:O9Xz/ioc9NAj5k/QUsR0W4LCz2uVHawJF89yPTI7NXk=
......
...@@ -98,6 +98,7 @@ func (w *wasmModel) Receive(messageID message.ID, nickname string, text []byte, ...@@ -98,6 +98,7 @@ func (w *wasmModel) Receive(messageID message.ID, nickname string, text []byte,
pubKey ed25519.PublicKey, dmToken uint32, codeset uint8, timestamp time.Time, pubKey ed25519.PublicKey, dmToken uint32, codeset uint8, timestamp time.Time,
round rounds.Round, mType dm.MessageType, status dm.Status) uint64 { round rounds.Round, mType dm.MessageType, status dm.Status) uint64 {
parentErr := errors.New("failed to Receive") parentErr := errors.New("failed to Receive")
jww.TRACE.Printf("[DM indexedDB] Receive(%s)", messageID)
// If there is no extant Conversation, create one. // If there is no extant Conversation, create one.
_, err := impl.Get(w.db, conversationStoreName, utils.CopyBytesToJS(pubKey)) _, err := impl.Get(w.db, conversationStoreName, utils.CopyBytesToJS(pubKey))
...@@ -132,6 +133,8 @@ func (w *wasmModel) Receive(messageID message.ID, nickname string, text []byte, ...@@ -132,6 +133,8 @@ func (w *wasmModel) Receive(messageID message.ID, nickname string, text []byte,
jww.ERROR.Printf("Failed to receive Message: %+v", err) jww.ERROR.Printf("Failed to receive Message: %+v", err)
} }
jww.TRACE.Printf("[DM indexedDB] Calling ReceiveMessageCB(%v, %v, f)",
uuid, pubKey)
go w.receivedMessageCB(uuid, pubKey, false) go w.receivedMessageCB(uuid, pubKey, false)
return uuid return uuid
} }
...@@ -140,6 +143,7 @@ func (w *wasmModel) ReceiveText(messageID message.ID, nickname, text string, ...@@ -140,6 +143,7 @@ func (w *wasmModel) ReceiveText(messageID message.ID, nickname, text string,
pubKey ed25519.PublicKey, dmToken uint32, codeset uint8, pubKey ed25519.PublicKey, dmToken uint32, codeset uint8,
timestamp time.Time, round rounds.Round, status dm.Status) uint64 { timestamp time.Time, round rounds.Round, status dm.Status) uint64 {
parentErr := errors.New("failed to ReceiveText") parentErr := errors.New("failed to ReceiveText")
jww.TRACE.Printf("[DM indexedDB] ReceiveText(%s)", messageID)
// If there is no extant Conversation, create one. // If there is no extant Conversation, create one.
_, err := impl.Get(w.db, conversationStoreName, utils.CopyBytesToJS(pubKey)) _, err := impl.Get(w.db, conversationStoreName, utils.CopyBytesToJS(pubKey))
...@@ -176,6 +180,8 @@ func (w *wasmModel) ReceiveText(messageID message.ID, nickname, text string, ...@@ -176,6 +180,8 @@ func (w *wasmModel) ReceiveText(messageID message.ID, nickname, text string,
jww.ERROR.Printf("Failed to receive Message: %+v", err) jww.ERROR.Printf("Failed to receive Message: %+v", err)
} }
jww.TRACE.Printf("[DM indexedDB] Calling ReceiveMessageCB(%v, %v, f)",
uuid, pubKey)
go w.receivedMessageCB(uuid, pubKey, false) go w.receivedMessageCB(uuid, pubKey, false)
return uuid return uuid
} }
...@@ -184,6 +190,7 @@ func (w *wasmModel) ReceiveReply(messageID, reactionTo message.ID, nickname, ...@@ -184,6 +190,7 @@ func (w *wasmModel) ReceiveReply(messageID, reactionTo message.ID, nickname,
text string, pubKey ed25519.PublicKey, dmToken uint32, codeset uint8, text string, pubKey ed25519.PublicKey, dmToken uint32, codeset uint8,
timestamp time.Time, round rounds.Round, status dm.Status) uint64 { timestamp time.Time, round rounds.Round, status dm.Status) uint64 {
parentErr := errors.New("failed to ReceiveReply") parentErr := errors.New("failed to ReceiveReply")
jww.TRACE.Printf("[DM indexedDB] ReceiveReply(%s)", messageID)
// If there is no extant Conversation, create one. // If there is no extant Conversation, create one.
_, err := impl.Get(w.db, conversationStoreName, utils.CopyBytesToJS(pubKey)) _, err := impl.Get(w.db, conversationStoreName, utils.CopyBytesToJS(pubKey))
...@@ -220,6 +227,8 @@ func (w *wasmModel) ReceiveReply(messageID, reactionTo message.ID, nickname, ...@@ -220,6 +227,8 @@ func (w *wasmModel) ReceiveReply(messageID, reactionTo message.ID, nickname,
jww.ERROR.Printf("Failed to receive Message: %+v", err) jww.ERROR.Printf("Failed to receive Message: %+v", err)
} }
jww.TRACE.Printf("[DM indexedDB] Calling ReceiveMessageCB(%v, %v, f)",
uuid, pubKey)
go w.receivedMessageCB(uuid, pubKey, false) go w.receivedMessageCB(uuid, pubKey, false)
return uuid return uuid
} }
...@@ -228,6 +237,7 @@ func (w *wasmModel) ReceiveReaction(messageID, _ message.ID, nickname, ...@@ -228,6 +237,7 @@ func (w *wasmModel) ReceiveReaction(messageID, _ message.ID, nickname,
reaction string, pubKey ed25519.PublicKey, dmToken uint32, codeset uint8, reaction string, pubKey ed25519.PublicKey, dmToken uint32, codeset uint8,
timestamp time.Time, round rounds.Round, status dm.Status) uint64 { timestamp time.Time, round rounds.Round, status dm.Status) uint64 {
parentErr := errors.New("failed to ReceiveText") parentErr := errors.New("failed to ReceiveText")
jww.TRACE.Printf("[DM indexedDB] ReceiveReaction(%s)", messageID)
// If there is no extant Conversation, create one. // If there is no extant Conversation, create one.
_, err := impl.Get(w.db, conversationStoreName, utils.CopyBytesToJS(pubKey)) _, err := impl.Get(w.db, conversationStoreName, utils.CopyBytesToJS(pubKey))
...@@ -264,6 +274,8 @@ func (w *wasmModel) ReceiveReaction(messageID, _ message.ID, nickname, ...@@ -264,6 +274,8 @@ func (w *wasmModel) ReceiveReaction(messageID, _ message.ID, nickname,
jww.ERROR.Printf("Failed to receive Message: %+v", err) jww.ERROR.Printf("Failed to receive Message: %+v", err)
} }
jww.TRACE.Printf("[DM indexedDB] Calling ReceiveMessageCB(%v, %v, f)",
uuid, pubKey)
go w.receivedMessageCB(uuid, pubKey, false) go w.receivedMessageCB(uuid, pubKey, false)
return uuid return uuid
} }
...@@ -277,6 +289,8 @@ func (w *wasmModel) UpdateSentStatus(uuid uint64, messageID message.ID, ...@@ -277,6 +289,8 @@ func (w *wasmModel) UpdateSentStatus(uuid uint64, messageID message.ID,
// special version of receiveHelper) // special version of receiveHelper)
w.updateMux.Lock() w.updateMux.Lock()
defer w.updateMux.Unlock() defer w.updateMux.Unlock()
jww.TRACE.Printf("[DM indexedDB] UpdateSentStatus(%d, %s, ...)",
uuid, messageID)
// Convert messageID to the key generated by json.Marshal // Convert messageID to the key generated by json.Marshal
key := js.ValueOf(uuid) key := js.ValueOf(uuid)
...@@ -316,6 +330,9 @@ func (w *wasmModel) UpdateSentStatus(uuid uint64, messageID message.ID, ...@@ -316,6 +330,9 @@ func (w *wasmModel) UpdateSentStatus(uuid uint64, messageID message.ID,
if err != nil { if err != nil {
jww.ERROR.Printf("%+v", errors.Wrap(parentErr, err.Error())) jww.ERROR.Printf("%+v", errors.Wrap(parentErr, err.Error()))
} }
jww.TRACE.Printf("[DM indexedDB] Calling ReceiveMessageCB(%v, %v, t)",
uuid, newMessage.ConversationPubKey)
go w.receivedMessageCB(uuid, newMessage.ConversationPubKey, true) go w.receivedMessageCB(uuid, newMessage.ConversationPubKey, true)
} }
......
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