TeaWeb/shared/js/ui/frames/side/PrivateConversationDefinitions.ts

36 lines
836 B
TypeScript
Raw Normal View History

import {AbstractConversationUiEvents} from "./AbstractConversationDefinitions";
2020-07-17 23:56:20 +02:00
export type PrivateConversationInfo = {
nickname: string;
uniqueId: string;
clientId: number;
chatId: string;
lastMessage: number;
unreadMessages: boolean;
};
export interface PrivateConversationUIEvents extends AbstractConversationUiEvents {
2020-07-17 23:56:20 +02:00
action_close_chat: { chatId: string },
query_private_conversations: {},
2020-07-17 23:56:20 +02:00
notify_private_conversations: {
conversations: PrivateConversationInfo[],
selected: string
},
2020-07-17 23:56:20 +02:00
notify_partner_changed: {
chatId: string,
clientId: number,
name: string
},
notify_partner_name_changed: {
chatId: string,
name: string
},
notify_unread_state_changed: {
chatId: string,
unread: boolean
2020-07-17 23:56:20 +02:00
}
}