New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#1615] Expose tag events via websocket #1624
Conversation
d540a2e
to
82a4e08
Compare
d70e418
to
c88947a
Compare
8637338
to
548f8ef
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lovely
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool refactoring. Left some comments
delivery_state: DeliveryState; | ||
from_contact: boolean; | ||
sent_at: Date; | ||
metadata: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: Message events don't include metadata.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah this was already there bu I agree. I'll change!
|
||
```json5 | ||
{ | ||
"type": "tag", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So for my understanding: For now we don't handle tag deletions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the reason why I didn't do this is that right now "deleting tags" is not though off so well as it doesn't cascade to conversations (and maybe we should never do that. I guess we should discuss this in a separate issue though)
const SET_METADATA = '@@metadata/SET_METADATA'; | ||
|
||
export const setMetadataAction = createAction( | ||
SET_METADATA, | ||
(metadataEvent: MetadataEvent) => metadataEvent | ||
)<MetadataEvent>(); | ||
|
||
export const mergeMetadataAction = createAction( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 So this is also a step on the way to default values on the client.
No description provided.