mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 19:08:24 +00:00
fix(android): rebind listener before notification actions
This commit is contained in:
@@ -55,6 +55,11 @@ class NotificationsHandler private constructor(
|
||||
}
|
||||
|
||||
suspend fun handleNotificationsActions(paramsJson: String?): GatewaySession.InvokeResult {
|
||||
val snapshot = stateProvider.readSnapshot(appContext)
|
||||
if (snapshot.enabled && !snapshot.connected) {
|
||||
stateProvider.requestServiceRebind(appContext)
|
||||
}
|
||||
|
||||
val params = parseParamsObject(paramsJson)
|
||||
?: return GatewaySession.InvokeResult.error(
|
||||
code = "INVALID_REQUEST",
|
||||
|
||||
Reference in New Issue
Block a user