Fix bug with chat restore introduced in PR #184
This commit is contained in:
parent
8fa18838b9
commit
53ca8f5b3d
|
@ -351,7 +351,7 @@
|
|||
}
|
||||
|
||||
export const updateChatImages = async (chatId: number, chat: Chat) => {
|
||||
const messages = getMessages(chatId)
|
||||
const messages = chat.messages
|
||||
for (let i = 0; i < messages.length; i++) {
|
||||
const m = messages[i]
|
||||
if (m.image) m.image = await setImage(chatId, m.image)
|
||||
|
|
Loading…
Reference in New Issue