Resolve "(File Drop Mode) : File sent from the user in file drop mode is not received by another user"
This commit is contained in:
parent
d718ee06b8
commit
48cb13c82b
8 changed files with 68 additions and 18 deletions
|
|
@ -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, "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue