mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
zephyr_mirror: Fix case issue in subscriptions syncing.
(imported from commit e87ddab3684f4acae940ee831caadbc346458a11)
This commit is contained in:
@@ -570,7 +570,7 @@ def add_humbug_subscriptions(verbose):
|
|||||||
zephyr_subscriptions = set()
|
zephyr_subscriptions = set()
|
||||||
skipped = set()
|
skipped = set()
|
||||||
for (cls, instance, recipient) in parse_zephyr_subs(verbose=verbose):
|
for (cls, instance, recipient) in parse_zephyr_subs(verbose=verbose):
|
||||||
if cls == "message":
|
if cls.lower() == "message":
|
||||||
if recipient != "*":
|
if recipient != "*":
|
||||||
# We already have a (message, *, you) subscription, so
|
# We already have a (message, *, you) subscription, so
|
||||||
# these are redundant
|
# these are redundant
|
||||||
@@ -584,7 +584,7 @@ def add_humbug_subscriptions(verbose):
|
|||||||
# instead of subscribing to stream "message" on humbug
|
# instead of subscribing to stream "message" on humbug
|
||||||
zephyr_subscriptions.add(instance)
|
zephyr_subscriptions.add(instance)
|
||||||
continue
|
continue
|
||||||
elif cls == "mail" and instance == "inbox":
|
elif cls.lower() == "mail" and instance.lower() == "inbox":
|
||||||
# We forward mail zephyrs, so no need to print a warning.
|
# We forward mail zephyrs, so no need to print a warning.
|
||||||
continue
|
continue
|
||||||
elif len(cls) > 30:
|
elif len(cls) > 30:
|
||||||
|
|||||||
Reference in New Issue
Block a user