Last active
October 13, 2016 22:04
-
-
Save spf2/83621148a4ad950b1dfbe620cf4661b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getMessageActions(bubble) { | |
return [[ | |
"Like", | |
function(bubble, peers) { peers.send("like", "1") }, | |
function(bubble, peers) { peers.send("like", "-1") }, | |
]] | |
} | |
var actionHandlers = { | |
'like': function(bubble, value) { | |
bubble.badge.count += parseInt(value); | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment