Repair: copy legacy joinDate into new user's created_at when creating users from legacy wallz

This commit is contained in:
2026-03-22 09:13:39 +01:00
parent e8b5edf5d2
commit 2608be7420
80 changed files with 3991 additions and 723 deletions

View File

@@ -4,6 +4,7 @@ namespace App\Events;
use App\Models\Conversation;
use App\Services\Messaging\MessagingPayloadFactory;
use App\Services\Messaging\UnreadCounterService;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
@@ -41,6 +42,9 @@ class ConversationUpdated implements ShouldBroadcast
'event' => 'conversation.updated',
'reason' => $this->reason,
'conversation' => app(MessagingPayloadFactory::class)->conversationSummary($this->conversation, $this->userId),
'summary' => [
'unread_total' => app(UnreadCounterService::class)->totalUnreadForUser($this->userId),
],
];
}
}
}

View File

@@ -48,4 +48,4 @@ class MessageCreated implements ShouldBroadcast
'message' => app(MessagingPayloadFactory::class)->message($this->message, (int) $this->message->sender_id),
];
}
}
}

View File

@@ -42,4 +42,4 @@ class MessageDeleted implements ShouldBroadcast
'deleted_at' => optional($this->message->deleted_at ?? now())?->toIso8601String(),
];
}
}
}

View File

@@ -48,4 +48,4 @@ class MessageRead implements ShouldBroadcast
'last_read_at' => optional($this->participant->last_read_at)?->toIso8601String(),
];
}
}
}

View File

@@ -41,4 +41,4 @@ class MessageUpdated implements ShouldBroadcast
'message' => app(MessagingPayloadFactory::class)->message($this->message),
];
}
}
}