Skip to content

Commit 3dcb1b5

Browse files
Mohit TejaniMohit Tejani
authored andcommitted
mark diconnect and receive failure as subscribe operation type.
1 parent e24a14e commit 3dcb1b5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/event-engine/states/receiving.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ ReceivingState.on(disconnect.type, (context, event) => {
139139
return ReceiveStoppedState.with({ ...context }, [
140140
emitStatus({
141141
category: categoryConstants.PNDisconnectedCategory,
142-
operation: RequestOperation.PNUnsubscribeOperation,
142+
operation: RequestOperation.PNSubscribeOperation,
143143
}),
144144
]);
145145
} else {
@@ -150,7 +150,7 @@ ReceivingState.on(disconnect.type, (context, event) => {
150150
return ReceiveFailedState.with({ ...context, reason: errorReason }, [
151151
emitStatus({
152152
category: categoryConstants.PNDisconnectedUnexpectedlyCategory,
153-
operation: RequestOperation.PNUnsubscribeOperation,
153+
operation: RequestOperation.PNSubscribeOperation,
154154
error: errorReason.status?.category,
155155
}),
156156
]);

0 commit comments

Comments
 (0)