Skip to content

Commit

Permalink
Поправил стили для темной темы
Browse files Browse the repository at this point in the history
  • Loading branch information
visavi committed Apr 5, 2024
1 parent 21f90ba commit 8d011b3
Show file tree
Hide file tree
Showing 7 changed files with 1,469 additions and 1,592 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/MessageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function index(): View
})
->leftJoin('dialogues as d3', function ($join) {
$join->on('d.user_id', 'd3.author_id')
->whereRaw('d.message_id = d3.message_id');
->whereColumn('d.message_id', 'd3.message_id');
})
->where('d.user_id', $this->user->id)
->orderByDesc('d.created_at')
Expand Down Expand Up @@ -93,7 +93,7 @@ public function talk(string $login): View
->join('dialogues as d', 'd.message_id', 'm.id')
->leftJoin('dialogues as d2', function ($join) {
$join->on('d.user_id', 'd2.author_id')
->whereRaw('d.message_id = d2.message_id');
->whereColumn('d.message_id', 'd2.message_id');
})
->where('d.user_id', $this->user->id)
->where('d.author_id', $user->id)
Expand Down
Loading

0 comments on commit 8d011b3

Please sign in to comment.