Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/mask/shared-ui/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@
"setup_guide_connect_auto": "Connect",
"setup_guide_connect_failed": "Re-Connect",
"user_guide_tip_connected": "You have connected to this account successfully.",
"setup_guide_say_hello_content": "Hellow Mask world. This is my first encrypted message. Install https://mask.io to send me encrypted post. Follow @realMaskNetwork to explore Web 3.0.",
"setup_guide_say_hello_content": "Hello Mask world. This is my first encrypted message. Install https://mask.io to send me encrypted post. ",
"setup_guide_say_hello_follow": "Follow {{account}} to explore Web 3.0.",
"setup_guide_pin_tip_0": "Don't forget to pin Mask Network in your browser toolbar to access web 3.0 easily.",
"setup_guide_pin_tip_1": "Click on ",
"setup_guide_pin_tip_1_s": " at top right of your browser.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,14 @@ function SetupGuideUI(props: SetupGuideUIProps) {
}

const onCreate = async () => {
ui.automation.maskCompositionDialog?.open?.(makeTypedMessageText(t('setup_guide_say_hello_content')), {
let content = t('setup_guide_say_hello_content')
if (ui.networkIdentifier === 'twitter.com') {
content += t('setup_guide_say_hello_follow', { account: '@realMaskNetwork' })
} else if (ui.networkIdentifier === 'facebook.com') {
content += t('setup_guide_say_hello_follow', { account: '@masknetwork' })
}

ui.automation.maskCompositionDialog?.open?.(makeTypedMessageText(content), {
target: 'Everyone',
})
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ function PostDialogHintAtTwitter({ reason }: { reason: 'timeline' | 'popup' }) {
const onHintButtonClicked = useCallback(() => {
const content = sayHelloShowed[twitterBase.networkIdentifier].value
? undefined
: makeTypedMessageText(t('setup_guide_say_hello_content'))
: makeTypedMessageText(
t('setup_guide_say_hello_content') +
t('setup_guide_say_hello_follow', { account: '@realMaskNetwork' }),
)
MaskMessages.events.requestComposition.sendToLocal({ reason, open: true, content })
sayHelloShowed[twitterBase.networkIdentifier].value = true
}, [reason])
Expand Down