mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 16:06:47 +00:00
Make attachment ids available in string form
Since JS can't handle 8 byte longs (!) // FREEBIE
This commit is contained in:
1 parent
3b9a76c1f2
commit
934d7e0f02
1 file changed
+8
@@ -23,11 +23,15 @@ public class AttachmentDescriptor {
|
||||
@JsonProperty
|
||||
private long id;
|
||||
|
||||
@JsonProperty
|
||||
private String idString;
|
||||
|
||||
@JsonProperty
|
||||
private String location;
|
||||
|
||||
public AttachmentDescriptor(long id, String location) {
|
||||
this.id = id;
|
||||
this.idString = String.valueOf(id);
|
||||
this.location = location;
|
||||
}
|
||||
|
||||
@@ -40,4 +44,8 @@ public class AttachmentDescriptor {
|
||||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
|
||||
public String getIdString() {
|
||||
return idString;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user