From 11ffa885215d6810d6d715322c4047ac3aa091ba Mon Sep 17 00:00:00 2001 From: Miguel de la Cruz Date: Sun, 22 May 2022 21:38:29 +0200 Subject: [PATCH] Fix mattermost--get-user cache miss case --- mattermost.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mattermost.el b/mattermost.el index 7e8ea22..60095ba 100644 --- a/mattermost.el +++ b/mattermost.el @@ -62,7 +62,8 @@ if the user is not present" (user (plist-get mattermost-users-plist user-id-keyword))) (if (not user) (let ((user (mattermost-get-user user-id))) - (setq mattermost-users-plist (plist-put mattermost-users-plist user-id-keyword user))) + (setq mattermost-users-plist (plist-put mattermost-users-plist user-id-keyword user)) + user) user))) ;; ToDo: once mattermost-request parses headers, use it to fetch both