signal-desktop/ts/components/conversation/SafetyNumberNotification.md
2020-07-30 13:27:41 -07:00

697 B

In group conversation

<util.ConversationContext theme={util.theme}>
  <SafetyNumberNotification
    i18n={util.i18n}
    isGroup={true}
    contact={{
      phoneNumber: '(202) 500-1000',
      profileName: 'Mr. Fire',
      title: 'Mr. Fire',
    }}
    onVerify={() => console.log('onVerify')}
  />
</util.ConversationContext>

In one-on-one conversation

<util.ConversationContext theme={util.theme}>
  <SafetyNumberNotification
    i18n={util.i18n}
    isGroup={false}
    contact={{
      phoneNumber: '(202) 500-1000',
      profileName: 'Mr. Fire',
      title: 'Mr. Fire',
    }}
    onVerify={() => console.log('onVerify')}
  />
</util.ConversationContext>