[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) {
|
||||
super(props);
|
||||
const state = store.getState();
|
||||
this.baseUrl = state.server.server;
|
||||
this.baseUrl = state.share.server || state.server.server;
|
||||
}
|
||||
|
||||
onEmojiSelected = (emoji) => {
|
||||
|
|
|
@ -110,7 +110,9 @@ class DB {
|
|||
Thread,
|
||||
ThreadMessage,
|
||||
Upload,
|
||||
Permission
|
||||
Permission,
|
||||
CustomEmoji,
|
||||
FrequentlyUsedEmoji
|
||||
],
|
||||
actionsEnabled: true
|
||||
});
|
||||
|
|
|
@ -288,6 +288,8 @@ const RocketChat = {
|
|||
const serversDB = database.servers;
|
||||
reduxStore.dispatch(shareSelectServer(server));
|
||||
|
||||
RocketChat.setCustomEmojis();
|
||||
|
||||
// set User info
|
||||
try {
|
||||
const userId = await RNUserDefaults.get(`${ RocketChat.TOKEN_KEY }-${ server }`);
|
||||
|
|
Loading…
Reference in New Issue