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 3f2e631 commit cfb75caCopy full SHA for cfb75ca
src/Traits/HandlesConversations.php
@@ -107,7 +107,11 @@ public function removeStoredConversation($message = null)
107
* Only remove it from the cache if it was not modified
108
* after we loaded the data from the cache.
109
*/
110
- if ($this->getStoredConversation($message)['time'] == $this->currentConversationData['time']) {
+
111
+ $conversation = $this->getStoredConversation($message);
112
113
+ // See https://github.com/botman/botman/issues/1305
114
+ if (isset($conversation['time']) && ($conversation['time'] == $this->currentConversationData['time'])) {
115
$this->cache->pull($this->message->getConversationIdentifier());
116
$this->cache->pull($this->message->getOriginatedConversationIdentifier());
117
}
0 commit comments