Temporary revert (again) to fix an avatar retrieval issue.

This reverts commit 77524ae1f2.
This commit is contained in:
Greyson Parrelli
2019-05-01 08:25:14 -07:00
parent 4a2f3136c6
commit ecea6abeb6
6 changed files with 391 additions and 27 deletions

View File

@@ -4,10 +4,10 @@ package org.thoughtcrime.securesms.attachments;
import android.content.Context;
import android.net.Uri;
import android.support.annotation.NonNull;
import org.thoughtcrime.securesms.logging.Log;
import org.spongycastle.util.encoders.Hex;
import org.thoughtcrime.securesms.mms.PartAuthority;
import org.thoughtcrime.securesms.util.Hex;
import org.thoughtcrime.securesms.util.Util;
import java.io.BufferedOutputStream;
@@ -52,7 +52,7 @@ public class AttachmentServer implements Runnable {
this.attachment = attachment;
this.socket = new ServerSocket(0, 0, InetAddress.getByAddress(new byte[]{127, 0, 0, 1}));
this.port = socket.getLocalPort();
this.auth = Hex.toStringCondensed(Util.getSecretBytes(16));
this.auth = new String(Hex.encode(Util.getSecretBytes(16)));
this.socket.setSoTimeout(5000);
} catch (UnknownHostException e) {