Skip to content

Commit

Permalink
chore: bump lithium without legacy javax deps. (#145)
Browse files Browse the repository at this point in the history
* chore: bump lithium

* chore: bump lithium

* chore: add domain to metadata
  • Loading branch information
yamilmedina committed Apr 15, 2024
1 parent 0cfb25e commit ae6f0a4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
12 changes: 10 additions & 2 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.wire.bots</groupId>
<artifactId>roman</artifactId>
<version>1.19.0</version>
<version>1.19.3</version>

<name>Roman</name>
<description>Wire Bot API Proxy</description>
Expand All @@ -28,7 +28,7 @@

<maven.test.skip>true</maven.test.skip>

<lithium.version>3.6.0</lithium.version>
<lithium.version>3.6.4</lithium.version>
<dropwizard.version>4.0.0</dropwizard.version>
<jwt.version>0.11.5</jwt.version>
<junit5.version>5.8.2</junit5.version>
Expand Down Expand Up @@ -67,6 +67,14 @@
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-servlets</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-jdbi3</artifactId>
</dependency>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-client</artifactId>
</dependency>
<dependency>
<groupId>com.smoketurner</groupId>
<artifactId>dropwizard-swagger</artifactId>
Expand Down
13 changes: 12 additions & 1 deletion backend/src/main/java/com/wire/bots/roman/Sender.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,17 @@
import com.wire.bots.roman.model.Mention;
import com.wire.lithium.ClientRepo;
import com.wire.xenon.WireClient;
import com.wire.xenon.assets.*;
import com.wire.xenon.assets.AssetBase;
import com.wire.xenon.assets.AudioAsset;
import com.wire.xenon.assets.AudioPreview;
import com.wire.xenon.assets.ButtonActionConfirmation;
import com.wire.xenon.assets.Calling;
import com.wire.xenon.assets.FileAsset;
import com.wire.xenon.assets.FileAssetPreview;
import com.wire.xenon.assets.ImageAsset;
import com.wire.xenon.assets.ImagePreview;
import com.wire.xenon.assets.MessageText;
import com.wire.xenon.assets.Poll;
import com.wire.xenon.backend.models.Conversation;
import com.wire.xenon.exceptions.MissingStateException;
import com.wire.xenon.models.AssetKey;
Expand Down Expand Up @@ -230,6 +240,7 @@ private void setAssetMetadata(AssetBase asset, AssetMeta meta) {
asset.setAssetToken(meta.assetToken);
asset.setSha256(Base64.getDecoder().decode(meta.sha256));
asset.setOtrKey(Base64.getDecoder().decode(meta.otrKey));
asset.setDomain(meta.domain);
}

private AssetKey uploadAssetData(WireClient wireClient, AssetBase asset) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import jakarta.validation.constraints.NotNull;

@JsonIgnoreProperties(ignoreUnknown = true)
Expand All @@ -21,4 +20,8 @@ public class AssetMeta {
@JsonProperty
@NotNull
public String otrKey;

@JsonProperty
@NotNull
public String domain;
}

0 comments on commit ae6f0a4

Please sign in to comment.