close chat when deleting
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import * as React from "bloatless-react";
|
import * as React from "bloatless-react";
|
||||||
|
|
||||||
import { Chat } from "../Model/chatModel";
|
import { Chat } from "../Model/chatModel";
|
||||||
|
import { closeChatView } from "../Model/model";
|
||||||
import { translation } from "../translations";
|
import { translation } from "../translations";
|
||||||
|
|
||||||
export function ChatOptionModal(chat: Chat, isPresented: React.State<boolean>) {
|
export function ChatOptionModal(chat: Chat, isPresented: React.State<boolean>) {
|
||||||
@@ -11,6 +12,7 @@ export function ChatOptionModal(chat: Chat, isPresented: React.State<boolean>) {
|
|||||||
function deleteChat() {
|
function deleteChat() {
|
||||||
chat.deleteSelf();
|
chat.deleteSelf();
|
||||||
closeModal();
|
closeModal();
|
||||||
|
closeChatView();
|
||||||
}
|
}
|
||||||
|
|
||||||
const shouldShowKey = new React.State(false);
|
const shouldShowKey = new React.State(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user