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