Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Doug <[email protected]>
  • Loading branch information
Velin92 and pixlwave authored Oct 17, 2024
1 parent d995e87 commit acfb954
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ElementX/Sources/Mocks/KnockedRoomProxyMock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extension KnockedRoomProxyMock {
self.init()
id = configuration.id
name = configuration.name
avatarURL = avatarURL
avatarURL = configuration.avatarURL
avatar = .room(id: configuration.id, name: configuration.name, avatarURL: configuration.avatarURL) // Note: This doesn't replicate the real proxy logic.
activeMembersCount = configuration.members.filter { $0.membership == .join || $0.membership == .invite }.count
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ struct JoinRoomScreen: View {
}

if context.viewState.mode == .knock {
Spacer()
.frame(height: 19)
knockMessage
.padding(.top, 19)
}
}
}
Expand Down Expand Up @@ -118,9 +117,11 @@ struct JoinRoomScreen: View {
}
.background(.compound.bgCanvasDefault)
.cornerRadius(8)
.overlay(RoundedRectangle(cornerRadius: 8)
.inset(by: 0.5)
.stroke(.compound.borderInteractivePrimary))
.overlay {
RoundedRectangle(cornerRadius: 8)
.inset(by: 0.5)
.stroke(.compound.borderInteractivePrimary)
}

Text(L10n.screenJoinRoomKnockMessageDescription)
.font(.compound.bodyMD)
Expand Down

0 comments on commit acfb954

Please sign in to comment.