1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-07 21:37:04 +09:00

Merge pull request #1854 from anyproto/GO-4562-fix-paste-images

GO-4562 fix clipboard paste images
This commit is contained in:
Mikhail 2024-11-21 19:37:31 +01:00 committed by GitHub
commit 587e070d94
Signed by: github
GPG key ID: B5690EEEBB952194

View file

@ -203,7 +203,8 @@ func (mw *Middleware) BlockPaste(cctx context.Context, req *pb.RpcBlockPasteRequ
ObjectOrigin: objectorigin.Clipboard(),
ImageKind: model.ImageKind_AutomaticallyAdded,
}
if _, err = bs.UploadBlockFile(ctx, req, groupId, false); err != nil {
// we shouldn't pass context here because the upload operation can rewrite original paste events
if _, err = bs.UploadBlockFile(nil, req, groupId, false); err != nil {
return err
}
}