Skip to content
Snippets Groups Projects
Commit 784495b3 authored by Richard T. Carback III's avatar Richard T. Carback III Committed by Jono Wenger
Browse files

Add a note as to why the ID field is not set on a new message

parent d3182fdc
No related branches found
No related tags found
2 merge requests!60Revert "Fail a test to be sure it works",!8Updates to match the client fullyDecentrilizedChannels branch
......@@ -236,6 +236,10 @@ func (w *wasmModel) UpdateSentStatus(uuid uint64, messageID cryptoChannel.Messag
// buildMessage is a private helper that converts typical [channels.EventModel]
// inputs into a basic Message structure for insertion into storage.
// 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(channelID, messageID, parentID []byte, nickname,
text string, identity cryptoChannel.Identity, timestamp time.Time,
lease time.Duration,
......
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