Update mattermost--get-user docstring

This commit is contained in:
Miguel de la Cruz 2022-05-22 20:10:41 +02:00
parent 190880e278
commit 0b553ba4e4

View file

@ -56,7 +56,8 @@
(insert (format "[%s] %s\n" username msg)))) (insert (format "[%s] %s\n" username msg))))
(defun mattermost--get-user (user-id) (defun mattermost--get-user (user-id)
"Returns the user from the internal cache or fetches it first" "Returns the user from the internal cache and fills the cache
if the user is not present"
(let* ((user-id-keyword (mattermost-string->keyword user-id)) (let* ((user-id-keyword (mattermost-string->keyword user-id))
(user (plist-get mattermost-users-plist user-id-keyword))) (user (plist-get mattermost-users-plist user-id-keyword)))
(if (not user) (if (not user)