This commit is contained in:
parent
e58b5eb0a1
commit
22a9b44612
|
@ -54,9 +54,6 @@ async def create_message(_, info, chat: str, body: str, reply_to=None):
|
|||
for member_id in members:
|
||||
await redis.execute("LPUSH", f"chats/{chat_dict['id']}/unread/{member_id}", str(message_id))
|
||||
|
||||
# result = FollowingResult("NEW", "chat", new_message)
|
||||
# await FollowingManager.push("chat", result)
|
||||
|
||||
# subscribe on updates
|
||||
await notify_message(new_message, chat_dict["id"])
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ class ChatPayload(TypedDict):
|
|||
createdBy: int
|
||||
description: Optional[str]
|
||||
messages: Optional[List[Message]]
|
||||
unread: Optional[int]
|
||||
unread: Optional[List[int]]
|
||||
|
||||
|
||||
class ChatUpdate(TypedDict):
|
||||
|
|
Loading…
Reference in New Issue
Block a user