Skip to content

Commit

Permalink
fix thread creator() - from latest() to oldest()
Browse files Browse the repository at this point in the history
fix thread creator() - from latest() to oldest()
  • Loading branch information
Jesse Szypulski committed Jun 4, 2015
1 parent 8e56c4b commit 72aaac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cmgmyr/Messenger/Models/Thread.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function participants()
*/
public function creator()
{
return $this->messages()->latest()->first()->user;
return $this->messages()->oldest()->first()->user;
}

/**
Expand Down

0 comments on commit 72aaac2

Please sign in to comment.