Skip to content

Commit 5ee4075

Browse files
committed
model: Handle (un)resolving topics.
Fixes zulip#1075 Still trying to figure out way of updating topic name with RESOLVED_TOPIC_PREFIX.
1 parent d2d05dc commit 5ee4075

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

zulipterminal/model.py

+6
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,12 @@ def update_private_message(self, msg_id: int, content: str) -> bool:
559559
display_error_if_present(response, self.controller)
560560
return response["result"] == "success"
561561

562+
def toggle_topic_resolved_status(self, stream_id: int, topic_name: str) -> bool:
563+
request = {"stream_id": stream_id, "topic": topic_name}
564+
response = self.client.update_stream(request)
565+
display_error_if_present(response, self.controller)
566+
return response["result"] == "success"
567+
562568
def update_stream_message(
563569
self,
564570
topic: str,

0 commit comments

Comments
 (0)