Skip to content

Commit

Permalink
Ignore category visibility/protection changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiri committed Dec 13, 2024
1 parent 3ce95e5 commit 2a4c83a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions outlook/indico_outlook/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ def init(self):
self.connect(signals.users.favorite_event_removed, self.favorite_event_removed)
self.connect(signals.users.favorite_category_added, self.favorite_category_added)
self.connect(signals.users.favorite_category_removed, self.favorite_category_removed)
self.connect(signals.category.updated, self.category_updated)

def _extend_indico_cli(self, sender, **kwargs):
@cli_command()
Expand Down Expand Up @@ -275,13 +274,6 @@ def favorite_category_removed(self, user, category, **kwargs):

self.logger.info('Favorite category removed: updating %s in %r', user, category)

def category_updated(self, category, changes, **kwargs):
if not changes.keys() & {'visibility', 'protection_mode'}:
return

# If the visibility changes, we should probably update all events in the categories
# that may suddenly become visible/invisible to users. Not quite sure how to handle this yet.

def event_registration_state_changed(self, registration, **kwargs):
if not registration.user or not self._user_tracks_registered_events(registration.user):
return
Expand Down

0 comments on commit 2a4c83a

Please sign in to comment.