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:
Joffrey JAFFEUX 2022-12-22 03:39:53 +01:00 committed by GitHub
parent 954b39f5ec
commit bef1966ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ UserChatChannelMembership.reopenClass({
},
_initUser(args) {
if (args.user instanceof User) {
if (!args.user || args.user instanceof User) {
return;
}