fix: merge duplicate symbols, expand Zoroastrian citations, add reading deletion to sessions, and deduplicate Word of the Day

This commit is contained in:
2026-10-11 15:34:52 +05:00
parent 0b12e4583b
commit e871476868
5 changed files with 632 additions and 686 deletions
+7
View File
@@ -715,6 +715,13 @@ class WordsRepository {
await saveSyncreticSession(updatedSession);
}
Future<void> removeReadingFromSyncreticSession(String readingId) async {
final current = currentSyncreticSession;
final updatedReadings = current.readings.where((r) => r.id != readingId).toList();
final updatedSession = current.copyWith(readings: updatedReadings);
await saveSyncreticSession(updatedSession);
}
Future<void> saveSyncreticSession(SyncreticSession session) async {
_currentSyncreticSession = session;
final idx = _syncreticSessions.indexWhere((s) => s.id == session.id);