Skip to content

Commit bdb793c

Browse files
committed
Merge pull request #41 from Kryptonit3/patch-1
fix thread creator() - from latest() to oldest()
2 parents 8e56c4b + 72aaac2 commit bdb793c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cmgmyr/Messenger/Models/Thread.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function participants()
6767
*/
6868
public function creator()
6969
{
70-
return $this->messages()->latest()->first()->user;
70+
return $this->messages()->oldest()->first()->user;
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)