-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Added the read_by_sender #1459
Added the read_by_sender #1459
Conversation
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.
@sreecharan7 Thanks for giving a 2nd try at this :)
I hope you're aware that you don't need to open a new PR to push an update?
The code changes look reasonable to me, though please pay attention to the new comment content.
Your commit text is slightly improved from the other PR, but doesn't relate to the files changed?
I often make small changes when merging, and these are small changes to be made, but this is a very small PR, and I flagged the commit issue previously.
zulipterminal/api_types.py
Outdated
@@ -83,13 +83,15 @@ class PrivateComposition(TypedDict): | |||
type: DirectMessageString | |||
content: str | |||
to: List[int] # User ids | |||
read_by_sender: bool # New in ZFL 58, Zulip 4.0 |
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.
These new comments are incorrect.
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.
To clarify, the use of a comment here is fine, and in accordance with the rest of the file. However, this field was not introduced at this zulip version / feature level.
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.
@sreecharan7 This is fine to keep as one commit.
Including api_types
in the commit title is good in the second commit you added, but note this will affect multiple files in combination.
I'd also suggest installing gitlint to help with commit message formatting.
zulipbot is also providing useful feedback here :)
I note that the zulip-terminal or general zulip notes don't appear to refer to refactoring, so I'd suggest reading up on that until we do. In this PR, while the change is internal, we are changing how we interact with the server, so I'd consider refactor to be inaccurate in this particular case, so that can be dropped.
zulipterminal/api_types.py
Outdated
@@ -83,13 +83,15 @@ class PrivateComposition(TypedDict): | |||
type: DirectMessageString | |||
content: str | |||
to: List[int] # User ids | |||
read_by_sender: bool # New in ZFL 58, Zulip 4.0 |
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.
To clarify, the use of a comment here is fine, and in accordance with the rest of the file. However, this field was not introduced at this zulip version / feature level.
This was added in ZFL 236 (Zulip 8.0). Tests updated. Fixes zulip#1456.
@sreecharan7 Thanks for working on this - I've made the final adjustments and this is now merged 🎉 |
What does this PR do, and why?
Introduction of the read_for_sender flag.
External discussion & connections
api add read_by_sender #T1459 #T1456
read_by_sender
flag when sending messages #1456How did you test this?
Self-review checklist for each commit