mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Make nicer slugs for "sender" narrows.
Slugs are now like our "pm-with" slugs:
narrow/sender/3-cordelia
This commit is contained in:
@@ -16,7 +16,7 @@ exports.encodeHashComponent = function (str) {
|
||||
};
|
||||
|
||||
exports.encode_operand = function (operator, operand) {
|
||||
if (operator === 'pm-with') {
|
||||
if ((operator === 'pm-with') || (operator === 'sender')) {
|
||||
var slug = people.emails_to_slug(operand);
|
||||
if (slug) {
|
||||
return slug;
|
||||
@@ -31,7 +31,7 @@ function decodeHashComponent(str) {
|
||||
}
|
||||
|
||||
exports.decode_operand = function (operator, operand) {
|
||||
if (operator === 'pm-with') {
|
||||
if ((operator === 'pm-with') || (operator === 'sender')) {
|
||||
var emails = people.slug_to_emails(operand);
|
||||
if (emails) {
|
||||
return emails;
|
||||
|
||||
Reference in New Issue
Block a user