mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Output attachment id as json string to prevent rounding due to conversion to double
Fixes #226
This commit is contained in:
parent
9aa13e92fe
commit
e490604d43
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ class JsonAttachment {
|
|||
|
||||
String contentType;
|
||||
String filename;
|
||||
long id;
|
||||
String id;
|
||||
int size;
|
||||
|
||||
JsonAttachment(SignalServiceAttachment attachment) {
|
||||
|
@ -15,7 +15,7 @@ class JsonAttachment {
|
|||
|
||||
final SignalServiceAttachmentPointer pointer = attachment.asPointer();
|
||||
if (attachment.isPointer()) {
|
||||
this.id = pointer.getId();
|
||||
this.id = String.valueOf(pointer.getId());
|
||||
if (pointer.getFileName().isPresent()) {
|
||||
this.filename = pointer.getFileName().get();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue