Support upgraded rooms (via links to successor/predecessor)
This commit is contained in:
parent
970f82ba29
commit
615aa2b781
11 changed files with 181 additions and 48 deletions
|
|
@ -27,7 +27,7 @@ import ContactInvited from "./messages/ContactInvited.vue";
|
|||
import ContactKicked from "./messages/ContactKicked.vue";
|
||||
import ContactBanned from "./messages/ContactBanned.vue";
|
||||
import ContactChanged from "./messages/ContactChanged.vue";
|
||||
import RoomCreated from "./messages/RoomCreated.vue";
|
||||
import RoomCreated from "./messages/composition/RoomCreated.vue";
|
||||
import RoomAliased from "./messages/RoomAliased.vue";
|
||||
import RoomNameChanged from "./messages/RoomNameChanged.vue";
|
||||
import RoomTopicChanged from "./messages/RoomTopicChanged.vue";
|
||||
|
|
@ -38,7 +38,6 @@ import ChatHeader from "./ChatHeader";
|
|||
import VoiceRecorder from "./VoiceRecorder";
|
||||
import RoomInfoBottomSheet from "./RoomInfoBottomSheet";
|
||||
import WelcomeHeaderRoom from "./welcome_headers/WelcomeHeaderRoom.vue";
|
||||
import MessageOperationsBottomSheet from "./MessageOperationsBottomSheet";
|
||||
import stickers from "../plugins/stickers";
|
||||
import StickerPickerBottomSheet from "./StickerPickerBottomSheet";
|
||||
import BottomSheet from "./BottomSheet.vue";
|
||||
|
|
@ -50,6 +49,7 @@ import RoomEncrypted from "./messages/RoomEncrypted.vue";
|
|||
import RoomDeletionNotice from "./messages/RoomDeletionNotice.vue";
|
||||
import DebugEvent from "./messages/DebugEvent.vue";
|
||||
import ReadMarker from "./messages/ReadMarker.vue";
|
||||
import RoomTombstone from "./messages/composition/RoomTombstone.vue";
|
||||
import roomDisplayOptionsMixin from "./roomDisplayOptionsMixin";
|
||||
import roomTypeMixin from "./roomTypeMixin";
|
||||
|
||||
|
|
@ -92,11 +92,11 @@ export default {
|
|||
VoiceRecorder,
|
||||
RoomInfoBottomSheet,
|
||||
WelcomeHeaderRoom,
|
||||
MessageOperationsBottomSheet,
|
||||
StickerPickerBottomSheet,
|
||||
BottomSheet,
|
||||
CreatePollDialog,
|
||||
ReadMarker,
|
||||
RoomTombstone
|
||||
},
|
||||
computed: {
|
||||
debugging() {
|
||||
|
|
@ -264,10 +264,7 @@ export default {
|
|||
}
|
||||
|
||||
case "m.room.create":
|
||||
if (this.showAllStatusMessages) {
|
||||
return RoomCreated;
|
||||
}
|
||||
break;
|
||||
return RoomCreated; // Check showAllStatusMessages in the component. We might want to show this always for upgraded rooms.
|
||||
|
||||
case "m.room.canonical_alias":
|
||||
if (this.showAllStatusMessages) {
|
||||
|
|
@ -323,6 +320,9 @@ export default {
|
|||
}
|
||||
break;
|
||||
|
||||
case "m.room.tombstone":
|
||||
return RoomTombstone;
|
||||
|
||||
case "m.poll.start":
|
||||
case "org.matrix.msc3381.poll.start":
|
||||
if (event.getSender() != this.$matrix.currentUserId) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue