Merge pull request #367 from im-yellow/main

Updown.py Message Navigation Fix
This commit is contained in:
Loup 2025-05-24 18:09:53 +05:30 committed by GitHub
commit 4bcabc1b01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View file

@ -89,6 +89,12 @@
}
],
"versions": {
"1.1.2": {
"api_version": 9,
"commit_sha": "1277ee0",
"released_on": "22-05-2025",
"md5sum": "95681edb02ee0a3d1bbc899dc8187029"
},
"1.1.1": {
"api_version": 9,
"commit_sha": "f1917f7",

View file

@ -39,12 +39,12 @@ class VeryPW(party.PartyWindow):
def _p(s, i=0):
print(s._chat_texts)
s._w1 = gcm()
if s._f:
s._o = tw(query=s._text_field)
s._f = False
s._n = -1
s._n = s._n + (1 if i else -1)
s._w1 = gcm()
s._n = 0 if i else len(s._w1)
s._n = (s._n + (1 if i else -1)) % len(s._w1)
try:
s._c((s._w1+[s._o])[s._n].split(": ", 1)[1])
except IndexError: