feat: Enhance message notifications with history and actions (#4133)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-01-04 15:46:07 -06:00 committed by GitHub
parent 43aca3c558
commit 49f6ffe6e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 496 additions and 43 deletions

View file

@ -149,6 +149,18 @@ interface PacketDao {
)
fun getMessagesFrom(contact: String): Flow<List<PacketEntity>>
@Transaction
@Query(
"""
SELECT * FROM packet
WHERE (myNodeNum = 0 OR myNodeNum = (SELECT myNodeNum FROM my_node))
AND port_num = 1 AND contact_key = :contact
ORDER BY received_time DESC
LIMIT :limit
""",
)
fun getMessagesFrom(contact: String, limit: Int): Flow<List<PacketEntity>>
@Transaction
@Query(
"""