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