Commit Graph

23 Commits

Author SHA1 Message Date
19854e59da Refactor: Adjust formatting and structure in database.py and meshchat.py
- Improved readability by restructuring function arguments and parameters across multiple files.
- Enhanced consistency in the formatting of method signatures and exception handling.
- Minor adjustments to comments for clarity and alignment with code style.
2025-11-30 22:38:07 -06:00
8ec7acd57e Refactor error handling and improve code clarity
- Updated exception handling across multiple files to specify Exception type, enhancing clarity and maintainability.
- Renamed several route handler functions in meshchat.py for better readability and consistency.
- Added noqa comments to suppress linting warnings for specific lines in database.py and other files.
2025-11-30 21:00:04 -06:00
cc30e6abc1 code cleanup 2025-11-30 20:51:30 -06:00
a3cb84fa06 Implement spam and blocking features in database and API
- Incremented database version to 6 and added 'is_spam' column to LxmfMessage model.
- Introduced BlockedDestination and SpamKeyword models for managing blocked destinations and spam keywords.
- Added API endpoints for managing blocked destinations and spam keywords, including create, read, and delete operations.
- Enhanced message handling to mark messages as spam based on keywords and block messages from blocked sources.
2025-11-30 20:41:48 -06:00
liamcottle
4734e62468 implement favourites system for nomadnetwork nodes 2025-07-25 23:02:05 +12:00
liamcottle
5a1bd889b7 collect rssi, snr and link quality for announces and add snr to announces ui 2024-12-23 03:36:01 +13:00
liamcottle
8e2cd6c62c add support for sideband/lxmf user appearance icons 2024-12-04 01:19:47 +13:00
liamcottle
c73213d435 allow user to set custom display names for peers and conversations 2024-09-19 23:46:08 +12:00
liamcottle
af36d30fb4 implement logic to send failed messages via propagation node 2024-09-18 01:26:40 +12:00
liamcottle
0822bbf60d add lxmf rssi, snr and quality to database 2024-08-10 15:41:13 +12:00
liamcottle
879632a953 rename web.py to meshchat.py 2024-07-09 17:38:45 +12:00
liamcottle
28e40cb002 implement database migrations and add delivery_attempts and next_delivery_attempt_at columns to lxmf messages table 2024-07-08 16:22:24 +12:00
liamcottle
0795664d87 add database table and api to track read state of conversations 2024-06-01 19:21:42 +12:00
liamcottle
b4200f8cd9 ensure datetime fields are stored in database as utc 2024-05-05 21:49:27 +12:00
liamcottle
06f5af2ee0 collect announces in database 2024-05-05 21:11:22 +12:00
liamcottle
3e9f7d5314 move config to database 2024-05-04 21:31:12 +12:00
liamcottle
6960f076d3 move db init to web.py 2024-05-04 20:22:10 +12:00
liamcottle
0d6835fe04 remove comment 2024-05-04 19:47:33 +12:00
liamcottle
ba5298b473 save lxmf message timestamp in db 2024-05-04 05:14:48 +12:00
liamcottle
96735c4bac save lxmf message title in db 2024-05-04 05:04:37 +12:00
liamcottle
952f2ea97e save incoming state in db 2024-05-04 04:58:15 +12:00
liamcottle
a195f5e257 lxmf messages api should support filtering for specific conversations 2024-05-04 03:10:06 +12:00
liamcottle
856fd8df00 save received lxmf messages to database 2024-05-03 23:48:15 +12:00