Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
update to match ict version 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vuapo-eth committed Jan 14, 2019
1 parent 0d255a7 commit 8965e48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -14,7 +14,7 @@ repositories {
}

dependencies {
compile 'com.github.iotaledger:ict:dc9398aa52a1071170524d3d9c0b6cdc47707431'
compile 'com.github.iotaledger:ict:0.4'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.1'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.21'
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/iota/ixi/chat/ChatIxi.java
Expand Up @@ -240,7 +240,7 @@ public JSONObject getOnlineUsers() {
}

private String deriveChannelAddressFromName(String channelName) {
String trytes = channelName.trim().toUpperCase().replaceAll("[^a-zA-Z0-9]", "");
String trytes = channelName.trim().toUpperCase().replaceAll("[^a-zA-Z9]", "");
assert Trytes.isTrytes(trytes);
String padded = Trytes.padRight(trytes.substring(0, Math.min(81, trytes.length())), 81);
return getAddressOfChannel(padded);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/iota/ixi/chat/model/Message.java
Expand Up @@ -144,7 +144,7 @@ private static Transaction encryptIntoTransaction(JSONObject unencrypted, String
builder.asciiMessage(seed+encrypted);

builder.tag = ChatIxi.calcLifeSignTag(System.currentTimeMillis());
return builder.build();
return builder.buildWhileUpdatingTimestamp();
}

private static String secureTryteSeed() {
Expand Down

0 comments on commit 8965e48

Please sign in to comment.