More changes
This commit is contained in:
parent
3b4d3f08f6
commit
48c0aae3c0
8 changed files with 12 additions and 16 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { markRaw } from "vue";
|
||||
import util, { ROOM_TYPE_CHANNEL, STATE_EVENT_ROOM_DELETION_NOTICE } from "../plugins/utils";
|
||||
import MessageIncomingText from "./messages/MessageIncomingText";
|
||||
import MessageIncomingFile from "./messages/MessageIncomingFile";
|
||||
|
|
@ -130,6 +131,14 @@ export default {
|
|||
},
|
||||
|
||||
componentForEvent(event, isForExport = false) {
|
||||
let component = this.componentForEventInternal(event, isForExport);
|
||||
if (component) {
|
||||
return markRaw(component);
|
||||
}
|
||||
return component;
|
||||
},
|
||||
|
||||
componentForEventInternal(event, isForExport = false) {
|
||||
const isChannel = this.roomDisplayType === ROOM_TYPE_CHANNEL;
|
||||
if (event === ROOM_READ_MARKER_EVENT_PLACEHOLDER) {
|
||||
return ReadMarker;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue