Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

minor: Add permission-related comments to widgets.

Steve Howell91b8049ecff3
diff --git a/static/js/todo_widget.js b/static/js/todo_widget.js
index a881d7947d9..697e7f3c403 100644
--- a/static/js/todo_widget.js
+++ b/static/js/todo_widget.js
@@ -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);
diff --git a/static/shared/js/poll_data.js b/static/shared/js/poll_data.js
index 26920b5a687..0e687d7e7b9 100644
--- a/static/shared/js/poll_data.js
+++ b/static/shared/js/poll_data.js
@@ -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);