mirror of https://github.com/Hilbis/Hilbish
fix: update message counter
parent
c1647646b2
commit
34a5b2aedd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue