@ -332,6 +332,9 @@
- ( void ) tableViewCellTappedDelete : ( NSIndexPath * ) indexPath {
- ( void ) tableViewCellTappedDelete : ( NSIndexPath * ) indexPath {
TSThread * thread = [ self threadForIndexPath : indexPath ] ;
TSThread * thread = [ self threadForIndexPath : indexPath ] ;
if ( [ thread isKindOfClass : [ TSGroupThread class ] ] ) {
if ( [ thread isKindOfClass : [ TSGroupThread class ] ] ) {
TSGroupThread * gThread = ( TSGroupThread * ) thread ;
if ( [ gThread . groupModel . groupMemberIds containsObject : [ TSAccountManager localNumber ] ] ) {
UIAlertController * removingFromGroup = [ UIAlertController
UIAlertController * removingFromGroup = [ UIAlertController
alertControllerWithTitle : [ NSString
alertControllerWithTitle : [ NSString
stringWithFormat : NSLocalizedString ( @ "GROUP_REMOVING ", nil ) , [ thread name ] ]
stringWithFormat : NSLocalizedString ( @ "GROUP_REMOVING ", nil ) , [ thread name ] ]
@ -361,6 +364,9 @@
} else {
} else {
[ self deleteThread : thread ] ;
[ self deleteThread : thread ] ;
}
}
} else {
[ self deleteThread : thread ] ;
}
}
}
- ( void ) deleteThread : ( TSThread * ) thread {
- ( void ) deleteThread : ( TSThread * ) thread {