You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently callOnEachEvent only allows me to specify the types of events I'm interested in, but not let me narrow down the messages I receive. According to this page, the python API does allow narrowing.
The text was updated successfully, but these errors were encountered:
Let me elaborate a little more on the narrow issue. I did not expect it to be part of the callOnEachEvent API, as they're specific to events of type message. Yet they seem to be part of the python API (see link posted earlier). So, I would expect the same behavior from the js API.
My primary use-case would be to filter out messages send by myself, to prevent an endless reply loop. Currently, I retrieve the current user profile at startup and then ignore all events of type message where the sender_id matches my ID. This works, but it would be nice if I could offload this logic to the zulip server, by defining a narrow (i.e. -sender:me). It would also further reduce bandwidth. For this specific use-case bandwidth savings are marginal, but could be more significant in other cases.
Currently
callOnEachEvent
only allows me to specify the types of events I'm interested in, but not let me narrow down the messages I receive. According to this page, the python API does allow narrowing.The text was updated successfully, but these errors were encountered: