mirror of
https://github.com/balzack/databag.git
synced 2025-03-13 00:50:03 +00:00
fixing loading of topics
This commit is contained in:
parent
a655313b12
commit
3b2dd6216e
@ -126,9 +126,10 @@ export function useConversationContext() {
|
||||
}
|
||||
|
||||
const setTopicDelta = async (cardId, channelId, entries) => {
|
||||
|
||||
for (let entry of entries) {
|
||||
if (entry.data) {
|
||||
if (entry.data.detail) {
|
||||
if (entry.data.topicDetail) {
|
||||
const item = mapTopicEntry(entry);
|
||||
setTopicItem(cardId, channelId, item);
|
||||
topics.current.set(item.topicId, item);
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { useEffect, useState, useRef, useContext } from 'react';
|
||||
import SQLite from "react-native-sqlite-storage";
|
||||
|
||||
const DATABAG_DB = 'db_v_131.db';
|
||||
const DATABAG_DB = 'db_v_132.db';
|
||||
|
||||
export function useStoreContext() {
|
||||
const [state, setState] = useState({});
|
||||
|
@ -95,7 +95,7 @@ export function useConversation() {
|
||||
|
||||
setTimeout(() => {
|
||||
updateState({ delayed: true });
|
||||
}, 250);
|
||||
}, 100);
|
||||
|
||||
}, [conversation.state, profile.state]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user