Skip to content

Commit

Permalink
Fix: missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Darker935 committed Jun 26, 2024
1 parent 0e1c50a commit f0a47e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
7 changes: 2 additions & 5 deletions src/main/java/it/auties/whatsapp/api/Whatsapp.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
import it.auties.whatsapp.model.message.model.reserved.ExtendedMediaMessage;
import it.auties.whatsapp.model.message.server.ProtocolMessage;
import it.auties.whatsapp.model.message.server.ProtocolMessageBuilder;
import it.auties.whatsapp.model.message.standard.CallMessageBuilder;
import it.auties.whatsapp.model.message.standard.NewsletterAdminInviteMessageBuilder;
import it.auties.whatsapp.model.message.standard.ReactionMessageBuilder;
import it.auties.whatsapp.model.message.standard.TextMessage;
import it.auties.whatsapp.model.message.standard.*;
import it.auties.whatsapp.model.newsletter.*;
import it.auties.whatsapp.model.node.Attributes;
import it.auties.whatsapp.model.node.Node;
Expand Down Expand Up @@ -749,7 +746,7 @@ public CompletableFuture<Void> pinMessage(ChatMessageKey messageKey, ChatMessage
var request = new MessageSendRequest.Chat(pinInfo, null, false, false, attrs);
return socketHandler.sendMessage(request);
}

public CompletableFuture<ChatMessageInfo> sendStatus(String message) {
return sendStatus(MessageContainer.of(message));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class DeviceContextInfo implements Info, ProtobufMessage {
private final int messageAddOnDurationInSecs;

@JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
public DeviceContextInfo(DeviceListMetadata deviceListMetadata, int deviceListMetadataVersion, byte[] messageSecret, byte[] paddingBytes) {
public DeviceContextInfo(DeviceListMetadata deviceListMetadata, int deviceListMetadataVersion, byte[] messageSecret, byte[] paddingBytes, int messageAddOnDurationInSecs) {
this.deviceListMetadata = deviceListMetadata;
this.deviceListMetadataVersion = deviceListMetadataVersion;
this.messageSecret = messageSecret;
Expand Down Expand Up @@ -55,7 +55,7 @@ public Optional<byte[]> paddingBytes() {
return Optional.ofNullable(paddingBytes);
}

public int messageAddOnDurationInSecs() {
return messageAddOnDurationInSecs;
public int messageAddOnDurationInSecs() {
return messageAddOnDurationInSecs;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
import it.auties.protobuf.model.ProtobufEnum;
import it.auties.protobuf.model.ProtobufMessage;
import it.auties.protobuf.model.ProtobufType;
import it.auties.whatsapp.model.info.MessageAddOnContextInfo;
import it.auties.whatsapp.model.jid.Jid;
import it.auties.whatsapp.model.info.DeviceContextInfo;
import it.auties.whatsapp.util.Clock;

import java.time.ZonedDateTime;
Expand All @@ -28,7 +27,7 @@ public record PinInChat(
@ProtobufProperty(index = 4, type = ProtobufType.INT64)
long serverTimestampMilliseconds,
@ProtobufProperty(index = 5, type = ProtobufType.OBJECT)
MessageAddOnContextInfo messageAddOnContextInfo
DeviceContextInfo messageAddOnContextInfo
) implements ProtobufMessage {
public Optional<ZonedDateTime> serverTimestamp() { return Clock.parseMilliseconds(serverTimestampMilliseconds); }

Expand Down

0 comments on commit f0a47e0

Please sign in to comment.