Skip to content

Commit

Permalink
model: Handle (un)resolving topics.
Browse files Browse the repository at this point in the history
Fixes zulip#1075
Still trying to figure out way of updating topic name with
RESOLVED_TOPIC_PREFIX.
  • Loading branch information
srdeotarse committed Jun 20, 2022
1 parent 1b78e43 commit d11e8d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zulipterminal/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,12 @@ def update_private_message(self, msg_id: int, content: str) -> bool:
display_error_if_present(response, self.controller)
return response["result"] == "success"

def toggle_topic_resolved_status(self, stream_id: int, topic_name: str) -> bool:
request = {"stream_id": stream_id, "topic": topic_name}
response = self.client.update_stream(request)
display_error_if_present(response, self.controller)
return response["result"] == "success"

def update_stream_message(
self,
topic: str,
Expand Down

0 comments on commit d11e8d0

Please sign in to comment.