title-fix

This commit is contained in:
tonyrewin 2022-12-07 10:49:43 +03:00
parent 00054a94ec
commit cf5789f2be
3 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ async def mark_as_read(_, info, chat_id: str, messages: [int]):
}
@subscription.source("newMessage")
@subscription.source("newMessages")
@login_required
async def message_generator(obj, info):
print(f"[resolvers.messages] generator {info}")
@ -174,4 +174,3 @@ async def messages_generator_by_user(user_id):
yield msg
finally:
await MessagesStorage.remove_chat(following_chat)

View File

@ -305,7 +305,7 @@ type Query {
############################################ Subscription
type Subscription {
newMessage(chats: [Int!]): Message!
newMessages: Message!
onlineUpdated: [User!]!
shoutUpdated: Shout!
userUpdated: User!
@ -507,6 +507,7 @@ type Message {
id: Int!
replyTo: String
updatedAt: Int
seen: Boolean
}
type Chat {

View File

@ -3,7 +3,7 @@ import asyncio
class MessageResult:
def __init__(self, status, message):
self.status = status
self.seen = status
self.message = message