Skip to content

Commit

Permalink
Backport bug fix for stickers directory
Browse files Browse the repository at this point in the history
  • Loading branch information
valldrac committed Sep 10, 2020
1 parent 414ce52 commit ae3c561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private static void processAttachment(@NonNull Context context, @NonNull Attachm
private static void processSticker(@NonNull Context context, @NonNull AttachmentSecret attachmentSecret, @NonNull SQLiteDatabase db, @NonNull Sticker sticker, BackupRecordInputStream inputStream)
throws IOException
{
File stickerDirectory = context.getDir(AttachmentDatabase.DIRECTORY, Context.MODE_PRIVATE);
File stickerDirectory = context.getDir(StickerDatabase.DIRECTORY, Context.MODE_PRIVATE);
File dataFile = File.createTempFile("sticker", ".mms", stickerDirectory);

Pair<byte[], OutputStream> output = ModernEncryptingPartOutputStream.createFor(attachmentSecret, dataFile, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class StickerDatabase extends Database {
"CREATE INDEX IF NOT EXISTS sticker_sticker_id_index ON " + TABLE_NAME + " (" + STICKER_ID + ");"
};

private static final String DIRECTORY = "stickers";
public static final String DIRECTORY = "stickers";

private final AttachmentSecret attachmentSecret;

Expand Down

0 comments on commit ae3c561

Please sign in to comment.