Fix push encryption

This commit is contained in:
Diego Mello 2023-06-23 13:08:49 -03:00
parent d71ea6b936
commit 299a100932
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class Encryption {
private ReactApplicationContext reactContext;
public Room readRoom(final Ejson ejson) throws NoSuchFieldException {
dbName += ".db";
String dbName = ejson.serverURL().replace("https://", "") + ".db";
Database database = new Database(dbName, reactContext, SQLiteDatabase.CREATE_IF_NECESSARY);
String[] query = {ejson.rid};
Cursor cursor = database.rawQuery("select * from subscriptions where id == ? limit 1", query);