notes from meeting

This commit is contained in:
Luke Miller 2021-11-29 18:29:39 -05:00
parent 1d45dc38b0
commit 08151ad9d9

View File

@ -60,16 +60,37 @@ function JoinOrg:initiate(result)
end
)
for user in pairs(self.org.users) {
self.org:add_pending_action(self.id, user, "callback")
org.pending.user[2348] = "callback"
self:callback(user)
}
if result then result() end
end
function JoinOrg:request()
function JoinOrg:callback(user)
modpol.interactions.binary_poll_user(
self.initiator,
"Do you want this" .. self.user_to_add .. "to join?",
function (resp)
if resp == "yes" then
self.votes_yes += 1
end
self:evaluate_vote()
end
)
end
function JoinOrg:on_success()
self.org:add_member(self.initiator)
self.org:delete_process(self.id)