Fix mattermost--get-user cache miss case

This commit is contained in:
Miguel de la Cruz 2022-05-22 21:38:29 +02:00
parent 784071afcf
commit 11ffa88521

View file

@ -62,7 +62,8 @@ if the user is not present"
(user (plist-get mattermost-users-plist user-id-keyword))) (user (plist-get mattermost-users-plist user-id-keyword)))
(if (not user) (if (not user)
(let ((user (mattermost-get-user user-id))) (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))) user)))
;; ToDo: once mattermost-request parses headers, use it to fetch both ;; ToDo: once mattermost-request parses headers, use it to fetch both