Typing and style fix

pull/23090/head
Martin 4 years ago
parent cc4131a247
commit 154b80818b
  1. 4
      client/views/omnichannel/directory/chats/contextualBar/SourceField.tsx
  2. 7
      definition/IRoom.ts

@ -43,8 +43,8 @@ const SourceField: FC<SourceFieldProps> = ({ room }) => {
api: string;
other: string;
} = {
widget: room.u.username,
email: room.livechatData?.visitor?.email, // Properly type livechat data on Iroom
widget: '',
email: room?.email?.inbox, // Properly type livechat data on Iroom
sms: t('External'),
app: t('External'), // TODO: use app text
api: t('External'), // TODO: use app text

@ -89,6 +89,13 @@ export interface IOmnichannelRoom extends Omit<IRoom, 'default' | 'featured' | '
token?: string;
status: 'online' | 'busy' | 'away' | 'offline';
};
email?: {
// Data used when the room is created from an email, via email Integration.
inbox: string;
thread: string;
replyTo: string;
subject: string;
};
source: {
// The source, or client, which created the Omnichannel room
type: OmnichannelSourceType;

Loading…
Cancel
Save