Dismiss thread when close tapped

This commit is contained in:
ismailgulek
2021-11-11 01:07:12 +03:00
parent e9f7b4a7f2
commit 63c2954c69
+9
View File
@@ -4664,6 +4664,15 @@ const NSTimeInterval kResizeComposerAnimationDuration = .05;
{
[self declineRoomInvitation];
}
else if ([titleView isKindOfClass:ThreadRoomTitleView.class])
{
ThreadRoomTitleView *threadTitleView = (ThreadRoomTitleView *)titleView;
if (tappedView == threadTitleView.closeButton)
{
// dismiss self
[self dismissViewControllerAnimated:YES completion:nil];
}
}
}
- (void)declineRoomInvitation