Add sent message to challenge button.

This commit is contained in:
yukirij 2024-09-04 16:58:13 -07:00
parent 9f41bc3745
commit 4c8a1b4915

View File

@ -749,8 +749,12 @@ const SCENES = {
for(let r = 0; r < data.users.length; ++r) {
let buttons = [ ];
let callback = function() {
let callback = function(event) {
MESSAGE_CHALLENGE(this.handle);
event.target.innerText = "Sent";
event.target.setAttribute("class", "highlight");
event.target.setAttribute("disabled", "");
};
callback = callback.bind({handle: data.users[r].handle});
buttons.push(UI.button(LANG("challenge"), callback));