mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix incoming friend request interaction
This commit is contained in:
parent
dca6aed6ee
commit
635dcef2b2
|
@ -36,10 +36,10 @@
|
|||
mainStackView.addArrangedSubview(buttonStackView)
|
||||
let buttonFont = UIFont.ows_dynamicTypeBodyClamped.ows_mediumWeight()
|
||||
let buttonHeight = buttonFont.pointSize * 48 / 17
|
||||
let acceptButton = OWSFlatButton.button(title: NSLocalizedString("Accept", comment: ""), font: buttonFont, titleColor: .ows_materialBlue, backgroundColor: .clear, target: self, selector: #selector(accept))
|
||||
let acceptButton = OWSFlatButton.button(title: NSLocalizedString("Accept", comment: ""), font: buttonFont, titleColor: .ows_materialBlue, backgroundColor: .white, target: self, selector: #selector(accept))
|
||||
acceptButton.autoSetDimension(.height, toSize: buttonHeight)
|
||||
buttonStackView.addArrangedSubview(acceptButton)
|
||||
let declineButton = OWSFlatButton.button(title: NSLocalizedString("Decline", comment: ""), font: buttonFont, titleColor: .ows_destructiveRed, backgroundColor: .clear, target: self, selector: #selector(decline))
|
||||
let declineButton = OWSFlatButton.button(title: NSLocalizedString("Decline", comment: ""), font: buttonFont, titleColor: .ows_destructiveRed, backgroundColor: .white, target: self, selector: #selector(decline))
|
||||
declineButton.autoSetDimension(.height, toSize: buttonHeight)
|
||||
buttonStackView.addArrangedSubview(declineButton)
|
||||
addSubview(mainStackView)
|
||||
|
|
|
@ -371,7 +371,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
}
|
||||
|
||||
if (self.isIncomingFriendRequest) {
|
||||
cellSize.height += 118; // TODO: Measure dynamically
|
||||
cellSize.height += 98; // TODO: Measure dynamically
|
||||
}
|
||||
|
||||
cellSize = CGSizeCeil(cellSize);
|
||||
|
@ -452,6 +452,10 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
{
|
||||
OWSAssertDebug(self.delegate);
|
||||
|
||||
if (self.isIncomingFriendRequest) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (sender.state != UIGestureRecognizerStateBegan) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue