minor: Add permission-related comments to widgets.

This commit is contained in:
Steve Howell 2021-06-13 12:52:08 +00:00 committed by Tim Abbott
parent 24ed5a2bb4
commit 91b8049ecf
2 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,7 @@ export class TaskData {
},
inbound: (sender_id, data) => {
// All messages readers may add tasks.
// for legacy reasons, the inbound idx is
// called key in the event
const idx = data.key;
@ -104,6 +105,7 @@ export class TaskData {
},
inbound: (sender_id, data) => {
// All message readers may strike/unstrike todo tasks.
const key = data.key;
const item = this.task_map.get(key);

View File

@ -96,6 +96,7 @@ export class PollData {
},
inbound: (sender_id, data) => {
// All message readers may add a new option to the poll.
const idx = data.idx;
const key = sender_id + "," + idx;
const option = data.option;
@ -157,6 +158,7 @@ export class PollData {
},
inbound: (sender_id, data) => {
// All message readers may vote on poll options.
const key = data.key;
const vote = data.vote;
const option = this.key_to_option.get(key);