damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit c22199165aebbe46b9a7357185e71139a72125d1
parent f7a03708245b4385002a168c56a07967b71c5694
Author: Ben Weeks <ben.weeks@outlook.com>
Date:   Mon, 29 May 2023 13:32:19 +0100

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

Diffstat:
Mdamus/Views/QRCodeView.swift | 15+++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)

diff --git 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)