From 8835fdee6b86118053840b69d49553b077d2d9f1 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sun, 4 Dec 2022 07:36:38 -0700 Subject: Explicitly ignore add and remove messages for now --- users/models/inbox_message.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'users') diff --git a/users/models/inbox_message.py b/users/models/inbox_message.py index 079c572..0bf6851 100644 --- a/users/models/inbox_message.py +++ b/users/models/inbox_message.py @@ -79,6 +79,12 @@ class InboxMessageStates(StateGraph): raise ValueError( f"Cannot handle activity of type delete.{unknown}" ) + case "add": + # We are ignoring these right now (probably pinned items) + pass + case "remove": + # We are ignoring these right now (probably pinned items) + pass case unknown: raise ValueError(f"Cannot handle activity of type {unknown}") return cls.processed -- cgit v1.2.3