-
Notifications
You must be signed in to change notification settings - Fork 99
Fix showing unmute user message action just after muting the user #847
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 8000 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
base: develop
Are you sure you want to change the base?
Conversation
2c5cab5
to
8f98355
Compare
SDK Size
|
|
@@ -469,6 +471,7 @@ | |||
<attribute name="lastActivityAt" optional="YES" attributeType="Date" usesScalarValueType="NO"/> | |||
<attribute name="name" optional="YES" attributeType="String"/> | |||
<attribute name="teams" attributeType="Transformable" valueTransformerName="NSSecureUnarchiveFromDataTransformer"/> | |||
<attribute name="teamsRole" optional="YES" attributeType="Transformable" valueTransformerName="NSSecureUnarchiveFromDataTransformer"/> |
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 has this file changed? 🤔
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.
Because we have a copy of the CoreData model (historical reasons as what I understand) and it was updated to set teamsRole
when creating UserDTO. This unit-test is special because current user controller is accessed from the message actions and it requires data in the database.
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.
The implementation looks good, but it looks like we included some unrelated code here?
# Conflicts: # CHANGELOG.md
8f98355
to
bc7b0cb
Compare
🔗 Issue Links
Resolves: IOS-476
🎯 Goal
Unmute user did not appear because of comparing user objects, not ids
📝 Summary
🛠 Implementation
ChatUser equality changed awhile ago where it just comparing ids, it compares other properties as well. This broke this check.
🎨 Showcase
🧪 Manual Testing Notes
☑️ Contributor Checklist
docs-content
repo