From c22199165aebbe46b9a7357185e71139a72125d1 Mon Sep 17 00:00:00 2001 From: Ben Weeks Date: Mon, 29 May 2023 13:32:19 +0100 Subject: [PATCH] Use "Follow me on nostr" text when looking at someone else's QR code Fixes: #1069 Closes: #1199 Changelog-Fixed: Use "Follow me on nostr" text when looking at someone else's QR code --- damus/Views/QRCodeView.swift | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/damus/Views/QRCodeView.swift b/damus/Views/QRCodeView.swift index ed17fbc7..0b7f97ae 100644 --- a/damus/Views/QRCodeView.swift +++ b/damus/Views/QRCodeView.swift @@ -80,10 +80,17 @@ struct QRCodeView: View { Spacer() - Text("Follow me on nostr", comment: "Text on QR code view to prompt viewer looking at screen to follow the user.") - .foregroundColor(DamusColors.white) - .font(.system(size: 24, weight: .heavy)) - .padding(.top) + if (pubkey == damus_state.pubkey) { + Text("Follow me on nostr", comment: "Text on QR code view to prompt viewer looking at screen to follow the user.") + .foregroundColor(DamusColors.white) + .font(.system(size: 24, weight: .heavy)) + .padding(.top) + } else { + Text("Follow them on nostr", comment: "Text on QR code view to prompt viewer looking at screen to follow the user (someone else).") + .foregroundColor(DamusColors.white) + .font(.system(size: 24, weight: .heavy)) + .padding(.top) + } Text("Scan the code", comment: "Text on QR code view to prompt viewer to scan the QR code on screen with their device camera.") .foregroundColor(DamusColors.white)