mirror of https://github.com/zulip/zulip.git
minor: Add permission-related comments to widgets.
This commit is contained in:
parent
24ed5a2bb4
commit
91b8049ecf
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue