-
Notifications
You must be signed in to change notification settings - Fork 17
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
Adds subscription for contacts on chat page #150
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #150 +/- ##
==========================================
- Coverage 68.65% 68.08% -0.58%
==========================================
Files 77 77
Lines 1171 1178 +7
Branches 97 101 +4
==========================================
- Hits 804 802 -2
- Misses 340 348 +8
- Partials 27 28 +1
☔ View full report in Codecov by Sentry. |
screens/Chat.tsx
Outdated
@@ -1,4 +1,5 @@ | |||
import React, { useState, useEffect } from 'react'; | |||
/* eslint-disable prettier/prettier */ |
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.
Why are we disabling this?
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.
It was added by mistake, I removed it in the latest changes
screens/Chat.tsx
Outdated
switch (action) { | ||
case 'RECEIVED': | ||
contactId = subscriptionData.data.receivedMessage.contact.id; | ||
id = subscriptionData.data.receivedMessage.id; | ||
body = subscriptionData.data.receivedMessage.body; |
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.
I think this is similar to what we have done in message list. Can you create a common functiona and use in both places.
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.
Implemented
@VishalZ123 can you please fix all deep scan problems first. |
Adds subscriptions for contacts message on chat page
Summary
This adds the feature of updating the contact card on the chat screen when a user sends or receives messages.
Changes made
MESSAGE_RECEIVED_SUBSCRIPTION
&MESSAGE_RECEIVED_SUBSCRIPTION
subscriptions.Issues
Closes: #139
@mdshamoon Please review this PR.