Earlier, when generating redirect url for search exit, we did not
encode the url in case of topic narrows. We expect some characters
to be replaced when generating hash.
This commit encodes the url for channels and topic narrows and
prevents redirecting to broken hashes.
Earlier, we would show subset suggestions for current search pills
in the suggestion list. Like if `is:dm`, `is:mentioned` and `has:link`
are already selected in the searchbox, we would show
`is:dm, is:mentioned` and `is:dm` again in the suggestion.
This commit removes subset suggestions for current search pills
from the suggestion line.
An error was raised where we tried to live update the folder name
in folder dropdown even when there was no dropdown visible
to the non-admin user in settings page. This was because
"There are no channel folders configured in this organization."
text was shown even when a folder was recently created in the
realm as we did not live update the visibility of dropdown on
creating or archiving a folder.
This commit fixes the bug by live-updating the visibility
of folder dropdown when creating or archiving a folder.
Earlier, operator autocomplete suggestion was showed at bottom after
operator with operand value suggestions.
This commit brings operator autocomplete suggestion to higher priority
in the suggestion list.
Earlier, validating messages on given narrow skipped for channels
operator.
This commit adds channels operator support for checking if message
corresponds to given search term.
On trying to restore a draft or a scheduled message in a
stream that is no longer accessible, compose box is opened
without selecting any stream with dropdown open.
Previously, it raised an AssertionError.
We replace the rewires with `peer_data.set_subscribers`.
This also adds the passed stream_id to the set
`fetched_stream_ids`, which allows us to eliminate the
mocking of `channel.ts` in the test file. The mock was
earlier required because of a call to
`peer_data.maybe_fetch_stream_subscribers` in
`compare_people_for_relevance`.
Fixes part of #32326.
This commit includes the following changes:
- Add an administrator setting to customize the Welcome Bot
message when sending an invitation.
- Add an API endpoint to test the customized Welcome Bot message
by sending a copy of the message to the administrator.
Fixes#27663.
Co-authored-by: Akarsh Jain <akarsh.jain.790@gmail.com>
Add a check for window blur and save any in-progress
messages as drafts. This will help prevent unnecessary
message loss for the user by creating drafts for them more
whenever they switch away from their Zulip tab.
Tested on my local Ubuntu development with a demo
organization and some of the premade profiles.
Fixes#35262.
This commit adds live-update code to reset the dropdown when user
is changing the folder for a channel or setting the folder for a
new channel and the selected folder is archived.