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:
commit
587e070d94
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue