-
-
Save sendbird-community/f8f936f286a9576323ebec8b94c37b32 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
const onBeforeUpdateUserMessage = (text) => { | |
updateChannelParams(); | |
const userMessageParams = new sdk.UserMessageParams(); | |
var jsonMessageData = { | |
type: "VOTING_APP", | |
version: 1, | |
title: `${text}`, | |
}; | |
var jsonString = JSON.stringify(jsonMessageData); | |
userMessageParams.data = jsonString; | |
userMessageParams.customType = "VOTING_APP"; | |
userMessageParams.message = text; | |
return userMessageParams; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment