cleanup already migrated message_view rendering

pull/1387/head
Audric Ackermann 5 years ago
parent 07c384aa0d
commit 35d9e2a207
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -44,42 +44,18 @@
getRenderInfo() {
const { Components } = window.Signal;
if (this.model.propsForTimerNotification) {
return {
Component: Components.TimerNotification,
props: this.model.propsForTimerNotification,
};
} else if (this.model.propsForVerificationNotification) {
if (this.model.propsForVerificationNotification) {
return {
Component: Components.VerificationNotification,
props: this.model.propsForVerificationNotification,
};
} else if (this.model.propsForResetSessionNotification) {
return {
Component: Components.ResetSessionNotification,
props: this.model.propsForResetSessionNotification,
};
} else if (this.model.propsForGroupNotification) {
return {
Component: Components.GroupNotification,
props: this.model.propsForGroupNotification,
};
} else if (this.model.isSessionRestoration()) {
return {
Component: Components.ResetSessionNotification,
props: this.model.getPropsForResetSessionNotification(),
};
} else if (this.model.propsForGroupInvitation) {
return {
Component: Components.GroupInvitation,
props: this.model.propsForGroupInvitation,
};
}
return {
Component: Components.Message,
props: this.model.propsForMessage,
};
return null;
},
render() {
this.addId();

Loading…
Cancel
Save