mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 01:28:03 +01:00
Simplify capability set serialization
This commit is contained in:
committed by
Jon Chambers
parent
a8da0f64ac
commit
74f8889bfa
@@ -34,8 +34,7 @@ public class DeviceCapabilityAdapter {
|
||||
final SerializerProvider serializerProvider) throws IOException {
|
||||
|
||||
jsonGenerator.writeObject(capabilities.stream()
|
||||
.map(DeviceCapability::getName)
|
||||
.collect(Collectors.toMap(capability -> capability, ignored -> true)));
|
||||
.collect(Collectors.toMap(DeviceCapability::getName, ignored -> true)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user