Merged hotfix/unsubscribing-everyone into develop
This commit is contained in:
commit
5e6c06add9
|
@ -1,5 +1,11 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v1.2.1
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed multiple users being unsubscribed when one user unsubscribes
|
||||||
|
|
||||||
## v1.2.0
|
## v1.2.0
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -161,7 +161,7 @@ var Subscriptions = {
|
||||||
},
|
},
|
||||||
unsubscribe: function (channelID, userID, user) {
|
unsubscribe: function (channelID, userID, user) {
|
||||||
if (this.subscribers.indexOf(userID) > -1) {
|
if (this.subscribers.indexOf(userID) > -1) {
|
||||||
this.subscribers.splice(this.subscribers.indexOf(userID));
|
this.subscribers.splice(this.subscribers.indexOf(userID), 1);
|
||||||
this.writeToFile();
|
this.writeToFile();
|
||||||
Log.event("Unsubscribed user " + (user ? user + "(" + userID + ")" : userID));
|
Log.event("Unsubscribed user " + (user ? user + "(" + userID + ")" : userID));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue