fix: update message counter

notifications
sammyette 2023-04-11 19:17:10 -04:00
parent c1647646b2
commit 34a5b2aedd
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 2 additions and 1 deletions

View File

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