mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-31 11:30:39 +00:00
10 lines
361 B
Java
10 lines
361 B
Java
package org.asamk.signal.json;
|
|
|
|
import org.asamk.signal.manager.api.MessageEnvelope;
|
|
|
|
public record JsonContactAvatar(JsonAttachment attachment, boolean isProfile) {
|
|
|
|
static JsonContactAvatar from(MessageEnvelope.Data.SharedContact.Avatar avatar) {
|
|
return new JsonContactAvatar(JsonAttachment.from(avatar.attachment()), avatar.isProfile());
|
|
}
|
|
}
|