Tentative fix for random crash forwarding a message

This commit is contained in:
Christophe Deschamps 2022-08-25 19:56:06 +02:00
parent a6b7182bd0
commit 9655948f35
2 changed files with 2 additions and 2 deletions

View file

@ -2207,7 +2207,7 @@ void on_shared_player_eof_reached(LinphonePlayer *p) {
onCancelClick:^() {}
onConfirmationClick:^() {
linphone_chat_message_send(linphone_chat_room_create_forward_message(_chatRoom, message));
linphone_chat_message_unref(message);
}];
d.forwardImage.hidden = NO;
[d setSpecialColor];

View file

@ -883,7 +883,7 @@ static const CGFloat REPLY_OR_FORWARD_TAG_HEIGHT = 18;
[_messageActionsIcons addObject:@"menu_forward_default"];
[_messageActionsBlocks addObject:^{
[thiz dismissPopup];
VIEW(ChatConversationView).pendingForwardMessage = message;
VIEW(ChatConversationView).pendingForwardMessage = linphone_chat_message_ref(message);
[PhoneMainView.instance changeCurrentView:VIEW(ChatsListView).compositeViewDescription];
}];