From 04e6cb515b524b35ae9f8d20c4b131aa0429a784 Mon Sep 17 00:00:00 2001 From: Thomas Willingham Date: Wed, 26 Feb 2014 01:57:29 +0000 Subject: Fix the weirdness of messages appearing in the middle of the screen and working their way downwards one comment at a time as the ping runs when joining an active chat room. --- mod/chatsvc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/chatsvc.php') diff --git a/mod/chatsvc.php b/mod/chatsvc.php index e6590f57a..9cc8778f5 100644 --- a/mod/chatsvc.php +++ b/mod/chatsvc.php @@ -113,7 +113,7 @@ function chatsvc_content(&$a) { $chats = array(); - $r = q("select * from chat left join xchan on chat_xchan = xchan_hash where chat_room = %d and chat_id > %d", + $r = q("select * from chat left join xchan on chat_xchan = xchan_hash where chat_room = %d and chat_id > %d order by created", intval($a->data['chat']['room_id']), intval($lastseen) ); @@ -147,4 +147,4 @@ function chatsvc_content(&$a) { json_return_and_die($ret); } - \ No newline at end of file + -- cgit v1.2.3