Finish sending pending messages before leaving room (#7276)
This commit is contained in:
parent
7dfdb06627
commit
f410d52bc1
2 changed files with 33 additions and 8 deletions
|
@ -1180,12 +1180,8 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
|||
button: _t("Leave"),
|
||||
onFinished: (shouldLeave) => {
|
||||
if (shouldLeave) {
|
||||
const d = leaveRoomBehaviour(roomId);
|
||||
leaveRoomBehaviour(roomId);
|
||||
|
||||
// FIXME: controller shouldn't be loading a view :(
|
||||
const modal = Modal.createDialog(Spinner, null, 'mx_Dialog_spinner');
|
||||
|
||||
d.finally(() => modal.close());
|
||||
dis.dispatch({
|
||||
action: "after_leave_room",
|
||||
room_id: roomId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue