Disable reply actions for events that are not ChatMessages

This commit is contained in:
QuentinArguillere 2022-04-14 11:02:41 +02:00
parent 29266d8ab4
commit 7553f0b85f
2 changed files with 5 additions and 1 deletions

View file

@ -415,6 +415,10 @@ static const CGFloat MESSAGE_SPACING_PERCENTAGE = 1.f;
LinphoneEventLog *event = [[eventList objectAtIndex:indexPath.row] pointerValue];
if (linphone_event_log_get_type(event) != LinphoneEventLogTypeConferenceChatMessage) {
return [UISwipeActionsConfiguration configurationWithActions:@[]];
}
UIContextualAction *replyAction = [UIContextualAction contextualActionWithStyle:UIContextualActionStyleNormal
title:NSLocalizedString(@"Reply", nil)
handler:^(UIContextualAction * _Nonnull action, __kindof UIView * _Nonnull sourceView, void (^ _Nonnull completionHandler)(BOOL)) {

View file

@ -5,7 +5,7 @@ source "https://github.com/CocoaPods/Specs.git"
def all_pods
if ENV['PODFILE_PATH'].nil?
pod 'linphone-sdk', '~> 5.1.0-beta.69+950f104'
pod 'linphone-sdk', '~>5.2.0-alpha'
else
pod 'linphone-sdk', :path => ENV['PODFILE_PATH'] # local sdk
end