diff options
author | Akihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp> | 2017-02-09 03:23:24 +0900 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-02-08 18:23:24 +0000 |
commit | 432dc9239fdd27063adcee944675d066fb35cde6 (patch) | |
tree | 6722f8bdb289883bffd0f81dc4074dc949176dba /webapp/stores/emoji_store.jsx | |
parent | 11e0a7daa2a478b1dca5164c11aa4e41e5652f1b (diff) | |
download | chat-432dc9239fdd27063adcee944675d066fb35cde6.tar.gz chat-432dc9239fdd27063adcee944675d066fb35cde6.tar.bz2 chat-432dc9239fdd27063adcee944675d066fb35cde6.zip |
Let emoji_store.jsx use Client APIs to resolve URLs (#5302)
Diffstat (limited to 'webapp/stores/emoji_store.jsx')
-rw-r--r-- | webapp/stores/emoji_store.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/stores/emoji_store.jsx b/webapp/stores/emoji_store.jsx index a178ff6ae..212583ea8 100644 --- a/webapp/stores/emoji_store.jsx +++ b/webapp/stores/emoji_store.jsx @@ -1,6 +1,7 @@ // Copyright (c) 2016 Mattermost, Inc. All Rights Reserved. // See License.txt for license information. +import Client from '../client/web_client.jsx'; import AppDispatcher from '../dispatcher/app_dispatcher.jsx'; import Constants from 'utils/constants.jsx'; import EventEmitter from 'events'; @@ -148,8 +149,7 @@ class EmojiStore extends EventEmitter { getEmojiImageUrl(emoji) { if (emoji.id) { - // must match Client.getCustomEmojiImageUrl - return `/api/v3/emoji/${emoji.id}`; + return Client.getCustomEmojiImageUrl(emoji.id); } const filename = emoji.filename || emoji.aliases[0]; |