zulip / python-zulip-api

Python library for the Zulip API.
https://zulip.com/api/
Apache License 2.0
350 stars 352 forks source link

issue with mute_topic endpoint #677

Closed mkp6781 closed 3 years ago

mkp6781 commented 3 years ago

I made a call to the endpoint with a non-existent topic and it returned a 'success' response. Further if I make calls with this same topic, depending on whether the operation specified is add/remove I get the following responses. "add" : {'result': 'error', 'msg': 'Topic already muted'} "remove" : {'result': 'error', 'msg': 'Topic is not muted'}

alexzw7 commented 3 years ago

@zulipbot add "good first issue"

alexzw7 commented 3 years ago

@zulipbot claim

timabbott commented 3 years ago

@mkp6781 can you explain in more detail what you were trying to do?

I don't think this is a bug -- in Zulip, there is no concept of a "non-existent topic" -- topics are just a field on Message objects. And muting adjusts the behavior of messages with that string in their topic field.