Skip to content

Commit

Permalink
Merge pull request #35 from threemarb/34_preserve_a_files_caption
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwr18 authored Nov 23, 2022
2 parents 4076394 + fd8d0bd commit 7ea4137
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/threema/receive/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Threema
module Receive
class File
attr_reader :content, :mime_type, :name
attr_reader :content, :mime_type, :name, :caption

def initialize(content:, threema:, **)
structure = JSON.parse(content)
Expand All @@ -26,6 +26,7 @@ def initialize(content:, threema:, **)

@mime_type = structure['m']
@name = structure['n']
@caption = structure['d']
end
end
end
Expand Down

0 comments on commit 7ea4137

Please sign in to comment.