Skip to content

Commit

Permalink
fix: cannot reply MessagingStyleNotification on certain devices
Browse files Browse the repository at this point in the history
  • Loading branch information
klxiaoniu committed Jul 14, 2023
1 parent 58442b9 commit c40e953
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -492,14 +492,14 @@ object MessagingStyleNotification : CommonSwitchFunctionHook(SyncUtils.PROC_ANY)
if (uinType != -1) {
param.result = null
val uin = intent.getStringExtra("TO_UIN") ?: return
val result = RemoteInput.getResultsFromIntent(intent)?.getString("KEY_REPLY")?: return
val result = RemoteInput.getResultsFromIntent(intent)?.getCharSequence("KEY_REPLY") ?: return
val selfUin = AppRuntimeHelper.getAccount()
// send message
ChatActivityFacade.sendMessage(
AppRuntimeHelper.getQQAppInterface(),
hostInfo.application,
SessionInfoImpl.createSessionInfo(uin, uinType),
result
result.toString()
)

// update exist notification
Expand Down

0 comments on commit c40e953

Please sign in to comment.