mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 22:37:56 +01:00 
			
		
		
		
	feat: add read last read chapter shortcut (#7230)
Supersedes #6861 Co-authored-by: Pierre-Monier <65488471+Pierre-Monier@users.noreply.github.com> Co-authored-by: Pierre-Monier <65488471+Pierre-Monier@users.noreply.github.com>
This commit is contained in:
		| @@ -26,7 +26,13 @@ class HistoryRepositoryImpl( | ||||
|         ) | ||||
|     } | ||||
|  | ||||
|     override suspend fun getNextChapterForManga(mangaId: Long, chapterId: Long): Chapter? { | ||||
|     override suspend fun getLastHistory(): HistoryWithRelations? { | ||||
|         return handler.awaitOneOrNull { | ||||
|             historyViewQueries.getLatestHistory(historyWithRelationsMapper) | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     override suspend fun getNextChapter(mangaId: Long, chapterId: Long): Chapter? { | ||||
|         val chapter = handler.awaitOne { chaptersQueries.getChapterById(chapterId, chapterMapper) } | ||||
|         val manga = handler.awaitOne { mangasQueries.getMangaById(mangaId, mangaMapper) } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user