Commit c441d370 authored by Martin Matějek's avatar Martin Matějek

Remove unnecessary message id check

parent ec3457ab
......@@ -64,12 +64,6 @@ class NotificationStorage:
def valid_id(self, msgid):
"""Check if msgid is valid and message with that id exists"""
if len(msgid) != self.SHORTID_LENGTH and len(msgid) != 32:
logger.warning("Notification id is invalid - incorrect format")
return False
# TODO: regex check for correct format?
if msgid not in self.notifications and msgid not in self.shortid_map:
logger.warning("Notification id is invalid - notification does not exist")
return False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment