mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
每次点击图片的时候 都解密一遍
This commit is contained in:
@@ -5506,8 +5506,9 @@ function MessageBubble({
|
|||||||
let finalImagePath = imageLocalPath
|
let finalImagePath = imageLocalPath
|
||||||
let finalLiveVideoPath = imageLiveVideoPath || undefined
|
let finalLiveVideoPath = imageLiveVideoPath || undefined
|
||||||
|
|
||||||
// If current cache is a thumbnail, wait for a silent force-HD decrypt before opening viewer.
|
// Every explicit preview click re-runs the forced HD search/decrypt path so
|
||||||
if (imageHasUpdate) {
|
// users don't need to re-enter the session after WeChat materializes a new original image.
|
||||||
|
if (message.imageMd5 || message.imageDatName) {
|
||||||
try {
|
try {
|
||||||
const upgraded = await requestImageDecrypt(true, true)
|
const upgraded = await requestImageDecrypt(true, true)
|
||||||
if (upgraded?.success && upgraded.localPath) {
|
if (upgraded?.success && upgraded.localPath) {
|
||||||
@@ -5539,7 +5540,6 @@ function MessageBubble({
|
|||||||
|
|
||||||
void window.electronAPI.window.openImageViewerWindow(finalImagePath, finalLiveVideoPath)
|
void window.electronAPI.window.openImageViewerWindow(finalImagePath, finalLiveVideoPath)
|
||||||
}, [
|
}, [
|
||||||
imageHasUpdate,
|
|
||||||
imageLiveVideoPath,
|
imageLiveVideoPath,
|
||||||
imageLocalPath,
|
imageLocalPath,
|
||||||
imageCacheKey,
|
imageCacheKey,
|
||||||
|
|||||||
Reference in New Issue
Block a user