feat: Add tags to enable custom message classification

This commit is contained in:
莘权 马 2023-08-22 11:13:08 +08:00
parent bc97b709bb
commit a2e9797d4e

View file

@ -51,7 +51,7 @@ class Message:
self.tags.add(tag)
def remove_tag(self, tag):
if self.tags is None:
if self.tags is None or tag not in self.tags:
return
self.tags.remove(tag)