Skip to content

Commit

Permalink
Merge pull request #6037 from nextcloud/backport/6034/stable-3.10
Browse files Browse the repository at this point in the history
[stable-3.10] Fix macOS notification talk replies by avoiding early dealloc
  • Loading branch information
mgallien authored Sep 7, 2023
2 parents c83e51a + 5ea644d commit bfacf45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/systray.mm
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ void sendTalkReply(UNNotificationResponse *response, UNNotificationContent* cont
<< "Token:" << qToken
<< "Account:" << qAccount;

const auto talkReply = QSharedPointer<OCC::TalkReply>::create(
accountState.data(), OCC::Systray::instance());
// OCC::TalkReply deletes itself once it's done, fire and forget
const auto talkReply = new OCC::TalkReply(accountState.data(), OCC::Systray::instance());
talkReply->sendReplyMessage(qToken, qReply, qReplyTo);
}

Expand Down

0 comments on commit bfacf45

Please sign in to comment.