Skip to content
Snippets Groups Projects
Commit 1b742574 authored by Jake Taylor's avatar Jake Taylor :lips:
Browse files

removed redundant convo upsert

parent c23af33e
No related branches found
No related tags found
1 merge request!67fix for latest client release
...@@ -225,11 +225,6 @@ func (w *wasmModel) receiveWrapper(messageID message.ID, parentID *message.ID, n ...@@ -225,11 +225,6 @@ func (w *wasmModel) receiveWrapper(messageID message.ID, parentID *message.ID, n
// If there is no extant Conversation, create one. // If there is no extant Conversation, create one.
jww.DEBUG.Printf( jww.DEBUG.Printf(
"[DM indexedDB] Joining conversation with %s", nickname) "[DM indexedDB] Joining conversation with %s", nickname)
err = w.upsertConversation(nickname, partnerKey, dmToken,
codeset, false)
if err != nil {
return 0, err
}
conversationUpdated = true conversationUpdated = true
} }
} else { } else {
...@@ -259,12 +254,10 @@ func (w *wasmModel) receiveWrapper(messageID message.ID, parentID *message.ID, n ...@@ -259,12 +254,10 @@ func (w *wasmModel) receiveWrapper(messageID message.ID, parentID *message.ID, n
// Update the conversation in storage, if needed // Update the conversation in storage, if needed
if conversationUpdated { if conversationUpdated {
err = w.upsertConversation(nickname, result.Pubkey, err = w.upsertConversation(nickname, result.Pubkey,
result.Token, result.CodesetVersion, result.Token, result.CodesetVersion, result.Blocked)
result.Blocked)
if err != nil { if err != nil {
return 0, err return 0, err
} }
conversationUpdated = true
} }
// Handle encryption, if it is present // Handle encryption, if it is present
......
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