Clientside support for reporting a specific user (#1361)

This commit is contained in:
whales
2019-09-15 17:50:51 +09:30
committed by Guangcong Luo
parent 5ba0790750
commit e084c1d77e

View File

@@ -2611,7 +2611,7 @@ function toId() {
this.$el.html('<p><button name="toggleIgnoreUser">' + (app.ignore[this.userid] ? 'Unignore' : 'Ignore') + '</button></p><p><button name="report">Report</button></p>');
},
report: function () {
app.joinRoom('view-help-request-report');
app.joinRoom('view-help-request-report-user-' + this.userid);
},
toggleIgnoreUser: function () {
var buf = "User '" + this.name + "'";