title-fix
This commit is contained in:
parent
00054a94ec
commit
cf5789f2be
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -3,7 +3,7 @@ import asyncio
|
|||
|
||||
class MessageResult:
|
||||
def __init__(self, status, message):
|
||||
self.status = status
|
||||
self.seen = status
|
||||
self.message = message
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user