mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
fix chat view
This commit is contained in:
@ -68,12 +68,16 @@ class Chat {
|
||||
}
|
||||
|
||||
if (this.chatHistoryBody[0]) {
|
||||
console.log("History body");
|
||||
this.scrollbarChatHistory = new PerfectScrollbar(this.chatHistoryBody[0], {
|
||||
wheelPropagation: false,
|
||||
suppressScrollX: true,
|
||||
|
||||
});
|
||||
}
|
||||
if (this.chatHistoryBody.length) {
|
||||
this.chatHistoryBody.scrollTop(0,this.chatHistoryBody[0].scrollHeight);
|
||||
}
|
||||
}
|
||||
initDirectMessage() {
|
||||
|
||||
@ -148,7 +152,7 @@ class Chat {
|
||||
this._handleGetChatList()
|
||||
this.sendBtnMessageDepartment.on("click", this._sendMessage.bind(this))
|
||||
this.sendBtnMessageDepartmentClient.on("click", this._sendMessage.bind(this))
|
||||
|
||||
this.scrollbarChatHistory.update()
|
||||
this.messageInput.on("keypress", this._sendMessagePressKey.bind(this))
|
||||
this.initSelectClient()
|
||||
// setInterval(this._getChatMessage.bind(this), 10000)
|
||||
|
||||
Reference in New Issue
Block a user