Commit 49b18f62 by Sixong.Zhu

fix emoji style

parent 9cbccb3a
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
></div> ></div>
<div <div
ref="bottom" ref="bottom"
class="chat-input flex-none overflow-hidden h-100" class="chat-input flex-none h-100"
v-if="isChatMember" v-if="isChatMember"
> >
<message-input @error="onError" /> <message-input @error="onError" />
......
...@@ -17,16 +17,25 @@ class ChatCacheDatabaseController { ...@@ -17,16 +17,25 @@ class ChatCacheDatabaseController {
if (that.db) { if (that.db) {
that.buildTables(that.db, that.chatListKey); that.buildTables(that.db, that.chatListKey);
that.buildTables(that.db, that.chatMessageKey); that.buildTables(that.db, that.chatMessageKey);
console.log(
`build index database for chat completed, 100%`
);
} }
resolve(); resolve();
}; };
r.onsuccess = function (e) { r.onsuccess = function (e) {
that.db = (e.target as any).result; that.db = (e.target as any).result;
console.log(`index database init comepleted, 33%`);
setupDb();
}; };
r.onupgradeneeded = function (e) { r.onupgradeneeded = function (e) {
that.db = (e.target as any).result; that.db = (e.target as any).result;
console.log(`index database init comepleted, 66%`);
setupDb(); setupDb();
}; };
r.onerror = function (e) {
console.log(`index database init failed, ${e}`);
};
} else { } else {
resolve(); resolve();
} }
...@@ -124,7 +133,9 @@ class ChatCacheDatabaseController { ...@@ -124,7 +133,9 @@ class ChatCacheDatabaseController {
source1.push(item); source1.push(item);
} }
} }
const source = source1.sort((x, y) => (x.last_msg_ts < y.last_msg_ts ? 1 : -1)); const source = source1.sort((x, y) =>
x.last_msg_ts < y.last_msg_ts ? 1 : -1
);
if (this.db) { if (this.db) {
const store = this.buildStore(this.chatListKey); const store = this.buildStore(this.chatListKey);
......
<template> <template>
<div class="input-wrap h-100 overflow-hidden"> <div class="input-wrap h-100">
<div class="tool-bar"> <div class="tool-bar">
<img <img
class="tool-bar-icon" class="tool-bar-icon"
...@@ -635,7 +635,7 @@ export default class Input extends Vue { ...@@ -635,7 +635,7 @@ export default class Input extends Vue {
.emoji-picker { .emoji-picker {
position: absolute; position: absolute;
z-index: 2; z-index: 2;
bottom: 99px; top: -232px;
left: -1px; left: -1px;
background-color: #fff; background-color: #fff;
padding: 20px; padding: 20px;
......
...@@ -32,6 +32,7 @@ function uniqueMessages( ...@@ -32,6 +32,7 @@ function uniqueMessages(
return all.findIndex((k) => k.id === item.id); return all.findIndex((k) => k.id === item.id);
}); });
} }
function filterMessages( function filterMessages(
messages: NonNullable<ChatStore.STATE_CHAT_MSG_HISTORY>, messages: NonNullable<ChatStore.STATE_CHAT_MSG_HISTORY>,
chatid: number chatid: number
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment