Skip to content

Commit

Permalink
closes #108
Browse files Browse the repository at this point in the history
  • Loading branch information
SchulteMK committed Feb 26, 2019
1 parent 86eab5a commit e49d1c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ type DocumentMessage struct {
Title string
PageCount uint32
Type string
FileName string
Thumbnail []byte
Content io.Reader
url string
Expand All @@ -376,15 +377,16 @@ func getDocumentMessage(msg *proto.WebMessageInfo) DocumentMessage {
doc := msg.GetMessage().GetDocumentMessage()
return DocumentMessage{
Info: getMessageInfo(msg),
Title: doc.GetTitle(),
PageCount: doc.GetPageCount(),
Type: doc.GetMimetype(),
FileName: doc.GetFileName(),
Thumbnail: doc.GetJpegThumbnail(),
url: doc.GetUrl(),
mediaKey: doc.GetMediaKey(),
fileEncSha256: doc.GetFileEncSha256(),
fileSha256: doc.GetFileSha256(),
fileLength: doc.GetFileLength(),
PageCount: doc.GetPageCount(),
Title: doc.GetTitle(),
Type: doc.GetMimetype(),
}
}

Expand Down

0 comments on commit e49d1c0

Please sign in to comment.