We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63354bf commit 0124aebCopy full SHA for 0124aeb
src/LeanplumInternal.ts
@@ -315,6 +315,8 @@ export default class LeanplumInternal {
315
Constants.DEFAULT_KEYS.TOKEN,
316
].includes(key))
317
.forEach(key => StorageManager.remove(key))
318
+
319
+ this._messages.cleanup()
320
}
321
322
this._lpRequest.userId = userId
src/Messages.ts
@@ -172,6 +172,12 @@ export default class Messages {
172
)
173
174
175
+ cleanup(): void {
176
+ StorageManager.remove(Constants.DEFAULT_KEYS.MESSAGE_CACHE)
177
+ this._messageCache = {}
178
+ this.onTrigger = () => { /* noop */ }
179
+ }
180
181
private _showRichIAM = false
182
183
enableRichInAppMessages(enabled: boolean): void {
0 commit comments