Skip to content

Commit

Permalink
Merge pull request #41 from Kryptonit3/patch-1
Browse files Browse the repository at this point in the history
fix thread creator() - from latest() to oldest()
  • Loading branch information
cmgmyr committed Jun 4, 2015
2 parents 8e56c4b + 72aaac2 commit bdb793c
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 bdb793c

Please sign in to comment.