Skip to content

Commit

Permalink
update creator() to use oldest()
Browse files Browse the repository at this point in the history
  • Loading branch information
cmgmyr committed Jun 4, 2015
1 parent 5e2a291 commit f8ed89d
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 f8ed89d

Please sign in to comment.