mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-22 01:18:19 +01:00
Move left pane entirely to React
This commit is contained in:
@@ -44,36 +44,36 @@
|
||||
getRenderInfo() {
|
||||
const { Components } = window.Signal;
|
||||
|
||||
if (this.model.isExpirationTimerUpdate()) {
|
||||
if (this.model.propsForTimerNotification) {
|
||||
return {
|
||||
Component: Components.TimerNotification,
|
||||
props: this.model.getPropsForTimerNotification(),
|
||||
props: this.model.propsForTimerNotification,
|
||||
};
|
||||
} else if (this.model.isKeyChange()) {
|
||||
} else if (this.model.propsForSafetyNumberNotification) {
|
||||
return {
|
||||
Component: Components.SafetyNumberNotification,
|
||||
props: this.model.getPropsForSafetyNumberNotification(),
|
||||
props: this.model.propsForSafetyNumberNotification,
|
||||
};
|
||||
} else if (this.model.isVerifiedChange()) {
|
||||
} else if (this.model.propsForVerificationNotification) {
|
||||
return {
|
||||
Component: Components.VerificationNotification,
|
||||
props: this.model.getPropsForVerificationNotification(),
|
||||
props: this.model.propsForVerificationNotification,
|
||||
};
|
||||
} else if (this.model.isEndSession()) {
|
||||
} else if (this.model.propsForResetSessionNotification) {
|
||||
return {
|
||||
Component: Components.ResetSessionNotification,
|
||||
props: this.model.getPropsForResetSessionNotification(),
|
||||
props: this.model.propsForResetSessionNotification,
|
||||
};
|
||||
} else if (this.model.isGroupUpdate()) {
|
||||
} else if (this.model.propsForGroupNotification) {
|
||||
return {
|
||||
Component: Components.GroupNotification,
|
||||
props: this.model.getPropsForGroupNotification(),
|
||||
props: this.model.propsForGroupNotification,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
Component: Components.Message,
|
||||
props: this.model.getPropsForMessage(),
|
||||
props: this.model.propsForMessage,
|
||||
};
|
||||
},
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user