Skip to content

Commit

Permalink
2.12.3-1298 (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludy87 authored Jan 25, 2024
1 parent 1a3da53 commit bc9a3a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pyxplora_api/const_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = "2.12.2"
VERSION = "2.12.3"
VERSION_APP = "1298"
9 changes: 6 additions & 3 deletions src/pyxplora_api/gql_handler_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,12 @@ async def checkEmailOrPhoneExist_a(

async def sendText_a(self, wuid: str, text: str) -> bool:
# ownUser id
if (await self.runGqlQuery_a(gm.WATCH_M.get("sendChatTextM", ""), {"uid": wuid, "text": text}, "SendChatText")).get(
"data", {}
)["sendChatText"] is not None:
result = await self.runGqlQuery_a(gm.WATCH_M.get("sendChatTextM", ""), {"uid": wuid, "text": text}, "SendChatText")
errors = result.get("errors", None)
if errors is not None:
for error in errors:
_LOGGER.error(error)
if result.get("data", {})["sendChatText"] is not None:
return True
return False

Expand Down

0 comments on commit bc9a3a0

Please sign in to comment.