This commit is contained in:
@@ -4,7 +4,7 @@ import uuid
|
||||
|
||||
from models.chat import Chat, ChatUpdate
|
||||
from services.auth import login_required
|
||||
from services.core import authors_by_user
|
||||
from services.core import get_all_authors
|
||||
from services.presence import notify_chat
|
||||
from services.rediscache import redis
|
||||
from services.schema import mutation
|
||||
@@ -53,6 +53,7 @@ async def create_chat(_, info, title="", members=None):
|
||||
print("create_chat members: %r" % members)
|
||||
print("create_chat context: %r" % info.context)
|
||||
user_id = info.context["user_id"]
|
||||
authors_by_user, authors_by_id = get_all_authors()
|
||||
author = authors_by_user[user_id]
|
||||
author_id = author["id"]
|
||||
chat = None
|
||||
|
Reference in New Issue
Block a user