-
-
Save MarcoSignoretto/3dedbd174d01637481fcff71c36500ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override suspend fun insert(title: String, content: String) { | |
val uid = UUID.randomUUID().toString() | |
noteDao.insert( | |
NoteEntity( | |
uid = uid, | |
title = title, | |
content = content.toByteArray(), | |
isSecured = false, | |
password = byteArrayOf() | |
) | |
) | |
val notes = fetchNotes() | |
_stream.emit(notes) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment