Skip to content
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

[#918] Consume Airy Events from new websocket in the UI #988

Merged
merged 6 commits into from
Feb 18, 2021

Conversation

chrismatix
Copy link
Contributor

resolves #918

@@ -109,6 +110,7 @@ private void startStream() {

// produce unread count metadata
messageStream.selectKey((messageId, message) -> message.getConversationId())
.filter((conversationId, message) -> isFromContact(message))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes a bug wherein unread counts where increased for messages sent from Airy

@chrismatix chrismatix marked this pull request as ready for review February 17, 2021 09:10
@chrismatix chrismatix requested review from bitboxer and AudreyKj and removed request for bitboxer February 17, 2021 09:10
@@ -16,7 +16,7 @@

"rules": {
"react/prop-types": 0,
"@typescript-eslint/no-unused-vars": ["error", {"varsIgnorePattern": "_"}],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should always provide a reason when changing the rules: This is very useful when you want to remove properties from an object by destructuring. I.e.

const {name, ...dataWithOutName} = contact;

You don't need the name here, but need to state it explicitly

Copy link
Contributor

@bitboxer bitboxer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really awesome refactoring ❤️ . The typescript stuff is 👍

Copy link
Contributor

@bitboxer bitboxer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@chrismatix chrismatix merged commit d160669 into develop Feb 18, 2021
@chrismatix chrismatix deleted the feat/use-airy-event-websocket branch February 18, 2021 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consume Airy Events from new websocket
4 participants