[FIX] Emoji keyboard not showing custom and frequently used emojis on Share Extension (#2251)
This commit is contained in:
parent
20604c4695
commit
83fbb8c304
|
@ -17,7 +17,7 @@ export default class EmojiKeyboard extends React.PureComponent {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
const state = store.getState();
|
const state = store.getState();
|
||||||
this.baseUrl = state.server.server;
|
this.baseUrl = state.share.server || state.server.server;
|
||||||
}
|
}
|
||||||
|
|
||||||
onEmojiSelected = (emoji) => {
|
onEmojiSelected = (emoji) => {
|
||||||
|
|
|
@ -110,7 +110,9 @@ class DB {
|
||||||
Thread,
|
Thread,
|
||||||
ThreadMessage,
|
ThreadMessage,
|
||||||
Upload,
|
Upload,
|
||||||
Permission
|
Permission,
|
||||||
|
CustomEmoji,
|
||||||
|
FrequentlyUsedEmoji
|
||||||
],
|
],
|
||||||
actionsEnabled: true
|
actionsEnabled: true
|
||||||
});
|
});
|
||||||
|
|
|
@ -288,6 +288,8 @@ const RocketChat = {
|
||||||
const serversDB = database.servers;
|
const serversDB = database.servers;
|
||||||
reduxStore.dispatch(shareSelectServer(server));
|
reduxStore.dispatch(shareSelectServer(server));
|
||||||
|
|
||||||
|
RocketChat.setCustomEmojis();
|
||||||
|
|
||||||
// set User info
|
// set User info
|
||||||
try {
|
try {
|
||||||
const userId = await RNUserDefaults.get(`${ RocketChat.TOKEN_KEY }-${ server }`);
|
const userId = await RNUserDefaults.get(`${ RocketChat.TOKEN_KEY }-${ server }`);
|
||||||
|
|
Loading…
Reference in New Issue