mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix NPE in conversation view.
// FREEBIE
This commit is contained in:
parent
e617ae910d
commit
af7fd60d76
1 changed files with 5 additions and 1 deletions
|
@ -1759,7 +1759,11 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
|
||||||
forItemAtIndexPath:(NSIndexPath *)indexPath
|
forItemAtIndexPath:(NSIndexPath *)indexPath
|
||||||
withSender:(id)sender
|
withSender:(id)sender
|
||||||
{
|
{
|
||||||
OWSAssert(indexPath);
|
if (!indexPath) {
|
||||||
|
// Sometimes this method is called when long-pressing in the body of a text message,
|
||||||
|
// especially during animations.
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
id<OWSMessageData> messageData = [self messageAtIndexPath:indexPath];
|
id<OWSMessageData> messageData = [self messageAtIndexPath:indexPath];
|
||||||
return [messageData canPerformEditingAction:action];
|
return [messageData canPerformEditingAction:action];
|
||||||
|
|
Loading…
Reference in a new issue