Skip to content

Commit

Permalink
Merge pull request #1179 from paper1111/master
Browse files Browse the repository at this point in the history
!!/unnotify shorthand
  • Loading branch information
ArtOfCode- committed Oct 29, 2017
2 parents cf1e7ca + 65121aa commit 6ecd32e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datahandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,10 @@ def add_to_notification_list(user_id, chat_site, room_id, se_site):

# noinspection PyMissingTypeHints
def remove_from_notification_list(user_id, chat_site, room_id, se_site):
notification_tuple = (int(user_id), chat_site, int(room_id), se_site)
exists, site = check_site_and_get_full_name(se_site)
if not exists:
return False
notification_tuple = (int(user_id), chat_site, int(room_id), site)
if notification_tuple not in GlobalVars.notifications:
return False
GlobalVars.notifications.remove(notification_tuple)
Expand Down

0 comments on commit 6ecd32e

Please sign in to comment.