-
Notifications
You must be signed in to change notification settings - Fork 224
Do not reset blocked state when channel specific WS event without blocked state is handled #3794
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -285,8 +285,6 @@ extension NSManagedObjectContext { | |
// for blocked 1:1 channels on channel list query | ||
if let isBlocked = payload.isBlocked { | ||
dto.isBlocked = isBlocked | ||
} else { | ||
dto.isBlocked = false | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Went through manual regression testing steps for blocked, and all was good. |
||
|
||
// Backend only returns a boolean for hidden state | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23605" systemVersion="24F74" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""> | ||
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23788.4" systemVersion="24F74" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier=""> | ||
<entity name="AttachmentDTO" representedClassName="AttachmentDTO" syncable="YES"> | ||
<attribute name="data" attributeType="Binary"/> | ||
<attribute name="id" attributeType="String"/> | ||
|
@@ -49,7 +49,7 @@ | |
<attribute name="hasUnreadSorting" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES"/> | ||
<attribute name="id" optional="YES" attributeType="String"/> | ||
<attribute name="imageURL" optional="YES" attributeType="URI"/> | ||
<attribute name="isBlocked" optional="YES" attributeType="Boolean" usesScalarValueType="YES"/> | ||
<attribute name="isBlocked" optional="YES" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Safe if default value is set, but it is optional (since now ChannelDTO might not update the property anymore). |
||
<attribute name="isDisabled" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/> | ||
<attribute name="isFrozen" attributeType="Boolean" usesScalarValueType="YES"/> | ||
<attribute name="isHidden" attributeType="Boolean" defaultValueString="NO" usesScalarValueType="YES"/> | ||
|
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 this one? We already have:
This is the one customers would use.
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.
What I learned was that they are going to use the one with blocked and hidden fields.