switch the promise type in sendReactionMessage action from SendReactionMessageResult to SendMessageResult. Since we have a lot of the message info already stored in the local message we no longer need to return a whole new newMessageInfos and instead can follow the pattern of text and multimedia messages of returning an updated time and id which is now the server id
Details
flow and this will be tested futher in subsequent diffs
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
lib/actions/message-actions.js | ||
---|---|---|
236 ↗ | (On Diff #20529) | Could you reming why do we need an interface? |
lib/actions/message-actions.js | ||
---|---|---|
236 ↗ | (On Diff #20529) | The`SendMessageResult` type, which is used for all locally composed message info has the interface field, and since now we are considering reaction messages as a locally composed message we should include this in the return |
lib/actions/message-actions.js | ||
---|---|---|
236 ↗ | (On Diff #20529) | Ok, it makes sense to be consistent. But I was curious about why do we need this field. Is it used anywhere? I've searched a bit and it seems like this field was introduced in D511 and then the usage was removed in D4645, so maybe we don't need this field at all. It doesn't hurt to keep it for some time, though. |
lib/actions/message-actions.js | ||
---|---|---|
236 ↗ | (On Diff #20529) |
Also seems like there are a couple of instances of interface in lib/utils/call-server-endpoint.js when we call a server endpoint.
I think we should keep it for now, especially if it doesn't hurt anything, but if we truly are not using this field, we should remove it from all messages that use it (text/multimedia/reaction) so that we can have all the local message types be consistent with each other |
lib/actions/message-actions.js | ||
---|---|---|
235–236 | I believe this is why message liking is broken on build 172. In the future, we should have taken into account that removing the newMessageInfo field, which was expected by build 172, from the return, could break functionality |
lib/actions/message-actions.js | ||
---|---|---|
235–236 | I don't think this is right – this is a change in client code. The problem isn't the change in client code, the problem is that you changed keyserver code to break support for old clients. Can you try to find where you did that? |