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
|
@login_required
|
||||||
async def message_generator(obj, info):
|
async def message_generator(obj, info):
|
||||||
print(f"[resolvers.messages] generator {info}")
|
print(f"[resolvers.messages] generator {info}")
|
||||||
|
@ -174,4 +174,3 @@ async def messages_generator_by_user(user_id):
|
||||||
yield msg
|
yield msg
|
||||||
finally:
|
finally:
|
||||||
await MessagesStorage.remove_chat(following_chat)
|
await MessagesStorage.remove_chat(following_chat)
|
||||||
|
|
||||||
|
|
|
@ -305,7 +305,7 @@ type Query {
|
||||||
############################################ Subscription
|
############################################ Subscription
|
||||||
|
|
||||||
type Subscription {
|
type Subscription {
|
||||||
newMessage(chats: [Int!]): Message!
|
newMessages: Message!
|
||||||
onlineUpdated: [User!]!
|
onlineUpdated: [User!]!
|
||||||
shoutUpdated: Shout!
|
shoutUpdated: Shout!
|
||||||
userUpdated: User!
|
userUpdated: User!
|
||||||
|
@ -507,6 +507,7 @@ type Message {
|
||||||
id: Int!
|
id: Int!
|
||||||
replyTo: String
|
replyTo: String
|
||||||
updatedAt: Int
|
updatedAt: Int
|
||||||
|
seen: Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
type Chat {
|
type Chat {
|
||||||
|
|
|
@ -3,7 +3,7 @@ import asyncio
|
||||||
|
|
||||||
class MessageResult:
|
class MessageResult:
|
||||||
def __init__(self, status, message):
|
def __init__(self, status, message):
|
||||||
self.status = status
|
self.seen = status
|
||||||
self.message = message
|
self.message = message
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user