Resolve "(File Drop Mode) : File sent from the user in file drop mode is not received by another user"

This commit is contained in:
N Pex 2023-08-01 10:14:10 +00:00
parent d718ee06b8
commit 48cb13c82b
8 changed files with 68 additions and 18 deletions

View file

@ -526,6 +526,31 @@ export default {
});
},
/**
* Leave the room, and if this is the last room we are in, navigate to the "goodbye" page.
* Otherwise, navigate to home.
* @param roomId
*/
leaveRoomAndNavigate(roomId) {
const joinedRooms = this.joinedRooms;
const isLastRoomWeAreJoinedTo = (
joinedRooms &&
joinedRooms.length == 1 &&
joinedRooms[0].roomId == roomId
);
return this.leaveRoom(roomId)
.then(() => {
if (isLastRoomWeAreJoinedTo) {
this.$navigation.push({ name: "Goodbye" }, -1);
} else {
this.$navigation.push(
{ name: "Home", params: { roomId: null } },
-1
);
}
})
},
kickUser(roomId, userId) {
if (this.matrixClient && roomId && userId) {
this.matrixClient.kick(roomId, userId, "");