Fix sending audio and video files
This commit is contained in:
parent
bdd240b4c7
commit
dfa354bf74
6 changed files with 66 additions and 65 deletions
|
|
@ -128,7 +128,7 @@ watch(
|
|||
event,
|
||||
() => {
|
||||
if (event.value) {
|
||||
if (event.value.getContent().msgtype == "m.image") {
|
||||
if (["m.image", "m.video"].includes(event.value.getContent().msgtype ?? "")) {
|
||||
// Single image mode
|
||||
items.value = [event.value].map((e: MatrixEvent) => {
|
||||
let ea = $matrix.attachmentManager.getEventAttachment(e);
|
||||
|
|
@ -157,14 +157,14 @@ onBeforeUnmount(() => {
|
|||
});
|
||||
|
||||
const showMessageText = computed((): boolean => {
|
||||
if (event.value?.getContent().msgtype == "m.image") {
|
||||
if (["m.image", "m.video"].includes(event.value?.getContent().msgtype ?? "")) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
const showMultiview = computed((): boolean => {
|
||||
if (event.value?.getContent().msgtype == "m.image") {
|
||||
if (["m.image", "m.video"].includes(event.value?.getContent().msgtype ?? "")) {
|
||||
return true;
|
||||
}
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue