diff options
author | Andrew Comminos <andrew@morlunk.com> | 2015-04-28 05:24:17 +0300 |
---|---|---|
committer | Andrew Comminos <andrew@morlunk.com> | 2015-04-28 05:24:17 +0300 |
commit | 5ac1f42b888d3683969ba940b943bda6c38b0844 (patch) | |
tree | 2a5564dfcdf01ecd3afeaddd02fc4144662d2e26 /src/main/java/com/morlunk | |
parent | 2596a503def15e5bb8d4feb24964ae8f86cf5e34 (diff) |
Implemented channel permissions interface, user channel fix.
Diffstat (limited to 'src/main/java/com/morlunk')
-rw-r--r-- | src/main/java/com/morlunk/jumble/model/User.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/morlunk/jumble/model/User.java b/src/main/java/com/morlunk/jumble/model/User.java index 5447bdf..8a500df 100644 --- a/src/main/java/com/morlunk/jumble/model/User.java +++ b/src/main/java/com/morlunk/jumble/model/User.java @@ -75,7 +75,11 @@ public class User extends IUser.Stub implements Comparable<User> { public void setChannel(Channel channel) { if (mChannel != null) mChannel.removeUser(this); + mChannel = channel; + + if (mChannel != null) + mChannel.addUser(this); } public int getUserId() { |