Skip to content

Commit

Permalink
v0.3.2.5-alpha (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat authored Apr 5, 2023
2 parents 0a56d2f + 2c3003d commit c8a694c
Show file tree
Hide file tree
Showing 2 changed files with 466 additions and 514 deletions.
8 changes: 4 additions & 4 deletions android/app/src/main/java/com/nostros/classes/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -618,14 +618,14 @@ protected void saveZap(SQLiteDatabase database, String userPubKey) throws JSONEx
preimage = preimageTags.getJSONArray(preimageTags.length() - 1).getString(1);
}

if (zapped_user_id.equals(userPubKey) && !pubkey.equals(userPubKey)) {
saveNotification(database, zapped_event_id, amount);
}

String userQuery = "SELECT created_at FROM nostros_users WHERE zap_pubkey = ? AND id = ?";
@SuppressLint("Recycle") Cursor userCursor = database.rawQuery(userQuery, new String[] {pubkey, zapped_user_id});

if (userCursor.moveToFirst()) {
if (zapped_user_id.equals(userPubKey) && !pubkey.equals(userPubKey)) {
saveNotification(database, zapped_event_id, amount);
}

ContentValues values = new ContentValues();
values.put("id", id);
values.put("content", content);
Expand Down
Loading

0 comments on commit c8a694c

Please sign in to comment.