FIX: prevents creating a null User object (#19569)
Following the removal of user in current_user_membership we were now doing: `User.create(null)`. I don't think it has any impact but this is just wasteful and could lead to issues if used.
This commit is contained in:
parent
954b39f5ec
commit
bef1966ca5
|
@ -19,7 +19,7 @@ UserChatChannelMembership.reopenClass({
|
|||
},
|
||||
|
||||
_initUser(args) {
|
||||
if (args.user instanceof User) {
|
||||
if (!args.user || args.user instanceof User) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue