Calling support

This commit is contained in:
Peter Thatcher 2020-06-04 11:16:19 -07:00 committed by Scott Nonnenberg
parent 83574eb067
commit d3a27a6442
72 changed files with 3864 additions and 191 deletions

View file

@ -178,6 +178,11 @@
type: 'resetSessionNotification',
data: this.getPropsForResetSessionNotification(),
};
} else if (this.isCallHistory()) {
return {
type: 'callHistory',
data: this.getPropsForCallHistory(),
};
}
return {
@ -366,6 +371,9 @@
// eslint-disable-next-line no-bitwise
return !!(this.get('flags') & flag);
},
isCallHistory() {
return this.get('type') === 'call-history';
},
// Props for each message type
getPropsForUnsupportedMessage() {
@ -500,6 +508,11 @@
// It doesn't need anything right now!
return {};
},
getPropsForCallHistory() {
return {
callHistoryDetails: this.get('callHistoryDetails'),
};
},
getAttachmentsForMessage() {
const sticker = this.get('sticker');
if (sticker && sticker.data) {