2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-21 04:53:24 +00:00

fix: update message counter

This commit is contained in:
sammyette 2023-04-11 19:17:10 -04:00
parent c1647646b2
commit 34a5b2aedd
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -34,7 +34,8 @@ end
function hilbish.messages.send(message) function hilbish.messages.send(message)
expect(message, 'text') expect(message, 'text')
expect(message, 'title') expect(message, 'title')
message.index = counter + 1 counter = counter + 1
message.index = counter
M._messages[message.index] = message M._messages[message.index] = message
bait.throw('hilbish.notification', message) bait.throw('hilbish.notification', message)