[FIX] Emoji keyboard not showing custom and frequently used emojis on Share Extension (#2251)

This commit is contained in:
Djorkaeff Alexandre 2020-07-08 13:19:41 -03:00 committed by GitHub
parent 20604c4695
commit 83fbb8c304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -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) => {

View File

@ -110,7 +110,9 @@ class DB {
Thread,
ThreadMessage,
Upload,
Permission
Permission,
CustomEmoji,
FrequentlyUsedEmoji
],
actionsEnabled: true
});

View File

@ -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 }`);