Repair: copy legacy joinDate into new user's created_at when creating users from legacy wallz
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
use App\Models\Conversation;
|
||||
use App\Policies\ConversationPolicy;
|
||||
use App\Services\Messaging\MessagingPayloadFactory;
|
||||
use Illuminate\Support\Facades\Broadcast;
|
||||
|
||||
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
|
||||
@@ -43,10 +44,9 @@ Broadcast::channel('presence-conversation.{conversationId}', function ($user, $c
|
||||
return false;
|
||||
}
|
||||
|
||||
return [
|
||||
'id' => (int) $user->id,
|
||||
'username' => (string) $user->username,
|
||||
'display_name' => (string) ($user->name ?: $user->username),
|
||||
'avatar_thumb_url' => null,
|
||||
];
|
||||
return app(MessagingPayloadFactory::class)->presenceUser($user);
|
||||
});
|
||||
|
||||
Broadcast::channel('presence-messaging', function ($user) {
|
||||
return app(MessagingPayloadFactory::class)->presenceUser($user);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user