consistent naming or properties

This commit is contained in:
or-else
2022-05-30 15:19:52 -07:00
parent fc94d7454f
commit eef880c448
9 changed files with 551 additions and 346 deletions
+4 -2
View File
@@ -169,8 +169,8 @@ export function fullFormatter(style, data, values, key, stack) {
el = CallMessage;
// Video call messages do not have content.
values = null;
attr.content = this.callState;
attr.response = this.isResponse;
attr.callState = this.callState;
attr.incoming = this.isResponse;
attr.duration = this.callDuration;
break;
default:
@@ -257,7 +257,9 @@ export function previewFormatter(style, data, values, key) {
break;
case 'VC':
el = CallStatus;
attr.callState = this.callState;
attr.incoming = this.previewIsResponse;
attr.duration = this.callDuration;
attr.success = true; // FIXME: use actuall call completion status instead of TRUE.
values = null;
break;