fixes
This commit is contained in:
@@ -54,9 +54,10 @@ async def create_message(_, info, chat: str, body: str, reply_to=None):
|
||||
|
||||
# subscribe on updates
|
||||
channel_name = (
|
||||
f"private:{author_id}" if not chat["title"] else f"group:{chat['id']}"
|
||||
f"chat:{chat['id']}" if not chat["title"] else f"group:{chat['id']}"
|
||||
)
|
||||
redis.execute("PUBLISH", channel_name, json.dumps(new_message))
|
||||
new_message["kind"] = "new_message"
|
||||
await redis.execute_pubsub("PUBLISH", channel_name, json.dumps(new_message))
|
||||
|
||||
return {"message": new_message, "error": None}
|
||||
|
||||
|
Reference in New Issue
Block a user