From 05df08efcb0daac4f262123e978e06fb3d9e48fc Mon Sep 17 00:00:00 2001 From: ycc Date: Sat, 6 Apr 2024 16:04:41 +0200 Subject: [PATCH] Add GetFilePreview method to Peer --- client/peer.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/peer.go b/client/peer.go index 04d3578..9721ca3 100644 --- a/client/peer.go +++ b/client/peer.go @@ -292,6 +292,10 @@ func (p *Peer) StoreMessage(msg *meowlib.UserMessage, filenames []string) error return StoreMessage(p, msg, filenames, p.GetDbPassword()) } +func (p *Peer) GetFilePreview(filename string) ([]byte, error) { + return FilePreview(filename, p.GetDbPassword()) +} + func (p *Peer) UpdateMessage(msg InternalUserMessage) error { return nil }