Loading Room Chat
# feat - Loading otomastis scroll chat ## No Isuuee
This commit is contained in:
@@ -5,14 +5,16 @@ import _ from "lodash";
|
||||
|
||||
export default async function Page({ params }: { params: { id: string } }) {
|
||||
let roomId = params.id;
|
||||
const userLoginId = await user_getOneUserId()
|
||||
let listMsg = await colab_getMessageByRoomId(roomId);
|
||||
const reserveMsg = _.reverse(listMsg)
|
||||
|
||||
const userLoginId = await user_getOneUserId();
|
||||
let listMsg = await colab_getMessageByRoomId(roomId, 1);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Colab_DetailGrupDiskusi roomId={roomId} listMsg={reserveMsg} userLoginId={userLoginId}/>
|
||||
<Colab_DetailGrupDiskusi
|
||||
roomId={roomId}
|
||||
listMsg={listMsg}
|
||||
userLoginId={userLoginId}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user