From 35d9e2a207b0f0131679cda7d6198d1e175dfed1 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 30 Oct 2020 10:58:43 +1100 Subject: [PATCH] cleanup already migrated message_view rendering --- js/views/message_view.js | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/js/views/message_view.js b/js/views/message_view.js index cefb567dc..2847f4ecd 100644 --- a/js/views/message_view.js +++ b/js/views/message_view.js @@ -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();