Fixed flag evaluation for notification selection type
This commit is contained in:
parent
7f706dfc51
commit
98696aee93
@ -580,7 +580,8 @@ class User:
|
||||
return hash(id)
|
||||
|
||||
def wants_notifications(self, notification_type: NotificationType):
|
||||
return notification_type in self.notify_event
|
||||
events = bitflag_to_list(self.notify_event)
|
||||
return notification_type in events
|
||||
|
||||
@dataclass
|
||||
class Ship:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user