fixing loading of topics

This commit is contained in:
balzack 2023-03-05 17:15:24 -08:00
parent a655313b12
commit 3b2dd6216e
3 changed files with 4 additions and 3 deletions

View File

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

View File

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

View File

@ -95,7 +95,7 @@ export function useConversation() {
setTimeout(() => {
updateState({ delayed: true });
}, 250);
}, 100);
}, [conversation.state, profile.state]);