mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 15:09:34 +00:00
narrow: Add frontend support for is:dm narrow and /is/dm URL.
Adds support in the web app for `is` operator with the `dm` operand. This will deprecate the `is` operator with the `private` operand, but we keep support for backwards-compatibility with links/URLs. This commit updates the web app default behaviors to default to the new narrow/URLs `is:dm` and `/#narrow/is/dm` when navigating and searching in the app. There is some general clean up of references to private messages or PMs to be either direct messages or DMs in these changes. The general API changelog and documentation updates will be done in a final commit in the series of commits that adds support for the various new direct message narrows.
This commit is contained in:
committed by
Tim Abbott
parent
33886575b2
commit
d379020726
@@ -730,7 +730,7 @@ export function initialize() {
|
||||
},
|
||||
);
|
||||
|
||||
/* The PRIVATE MESSAGES label's click behavior is complicated;
|
||||
/* The DIRECT MESSAGES label's click behavior is complicated;
|
||||
* only when zoomed in does it have a navigation effect, so we need
|
||||
* this click handler rather than just a link. */
|
||||
$("body").on(
|
||||
@@ -740,7 +740,7 @@ export function initialize() {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
||||
window.location.hash = "narrow/is/private";
|
||||
window.location.hash = "narrow/is/dm";
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user