Also update conversation if we detect that the dmToken has changed.
Merged
Also update conversation if we detect that the dmToken has changed.
XX-4592/tokenbug
into
release
2 open threads
2 open threads
Compare changes
+ 20
− 2
@@ -218,6 +218,8 @@ func (w *wasmModel) receiveWrapper(messageID message.ID, parentID *message.ID, n
@@ -238,6 +240,7 @@ func (w *wasmModel) receiveWrapper(messageID message.ID, parentID *message.ID, n
@@ -245,13 +248,28 @@ func (w *wasmModel) receiveWrapper(messageID message.ID, parentID *message.ID, n
I can't because conversationUpdated can happen on line 235 as well, so I believe these 2 vars have different semantics. One is used to determine if the entry can be updated, the other is used to determine if it has.
The code is due for a refactor, but thats a bit hairy and I am worried about correctness (I am sure it is correct now, I would not be sure if I made the changes necessary to remove conversationUpdated), so i'll add a FIXME.
this formative directive will break