You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: submodules/TelegramUI/Components/PeerInfo/AffiliateProgramSetupScreen/Sources/AffiliateProgramSetupScreen.swift
+48-46Lines changed: 48 additions & 46 deletions
Original file line number
Diff line number
Diff line change
@@ -176,10 +176,10 @@ final class AffiliateProgramSetupScreenComponent: Component {
self.environment?.controller()?.present(UndoOverlayController(presentationData: presentationData, content:.linkCopied(title:"Link copied to clipboard", text:"Share this link and earn **\(bot.commissionPermille/10)%** of what people who use it spend in **\(bot.peer.compactDisplayTitle)**!"), elevatedLayout:false, animateInAsReplacement:false, action:{ _ inreturnfalse}), in:.current)
381
+
self.environment?.controller()?.present(UndoOverlayController(presentationData: presentationData, content:.linkCopied(title:"Link copied to clipboard", text:"Share this link and earn **\(formatPermille(bot.commissionPermille))%** of what people who use it spend in **\(bot.peer.compactDisplayTitle)**!"), elevatedLayout:false, animateInAsReplacement:false, action:{ _ inreturnfalse}), in:.current)
382
382
}
383
383
))
384
384
))
@@ -557,13 +557,15 @@ If you end your affiliate program:
environment.controller()?.present(UndoOverlayController(presentationData: presentationData, content:.linkCopied(title:"Link copied to clipboard", text:"Share this link and earn **\(item.commissionPermille/10)%** of what people who use it spend in **\(item.peer.compactDisplayTitle)**!"), elevatedLayout:false, animateInAsReplacement:false, action:{ _ inreturnfalse}), in:.current)
1254
+
environment.controller()?.present(UndoOverlayController(presentationData: presentationData, content:.linkCopied(title:"Link copied to clipboard", text:"Share this link and earn **\(formatPermille(item.commissionPermille))%** of what people who use it spend in **\(item.peer.compactDisplayTitle)**!"), elevatedLayout:false, animateInAsReplacement:false, action:{ _ inreturnfalse}), in:.current)
1253
1255
})))
1254
1256
1255
1257
itemList.append(.action(ContextMenuActionItem(text:"Leave", textColor:.destructive, icon:{ theme in
@@ -1364,17 +1366,21 @@ If you end your affiliate program:
Copy file name to clipboardExpand all lines: submodules/TelegramUI/Components/PeerInfo/AffiliateProgramSetupScreen/Sources/JoinAffiliateProgramScreen.swift
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -637,7 +637,7 @@ private final class JoinAffiliateProgramScreenComponent: Component {
0 commit comments