mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
A few small tweaks. (#774)
- Use ShareLink instead of InviteFriendsCoordinator. - Fix a string in the user menu - Show the word Notification as the notification's body. --------- Co-authored-by: Mauro <34335419+Velin92@users.noreply.github.com>
This commit is contained in:
@@ -122,11 +122,13 @@ struct HomeScreen: View {
|
||||
}
|
||||
}
|
||||
Section {
|
||||
Button(action: inviteFriends) {
|
||||
Label(L10n.actionInvite, systemImage: "square.and.arrow.up")
|
||||
if let permalink = context.viewState.invitePermalink {
|
||||
ShareLink(item: permalink) {
|
||||
Label(L10n.actionInvite, systemImage: "square.and.arrow.up")
|
||||
}
|
||||
}
|
||||
Button(action: feedback) {
|
||||
Label(L10n.actionReportBug, systemImage: "questionmark.circle")
|
||||
Label(L10n.commonReportABug, systemImage: "questionmark.circle")
|
||||
}
|
||||
}
|
||||
Section {
|
||||
@@ -201,10 +203,6 @@ struct HomeScreen: View {
|
||||
context.send(viewAction: .userMenu(action: .settings))
|
||||
}
|
||||
|
||||
private func inviteFriends() {
|
||||
context.send(viewAction: .userMenu(action: .inviteFriends))
|
||||
}
|
||||
|
||||
private func startChat() {
|
||||
context.send(viewAction: .startChat)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user