Removes check in the main thread to avoid mocking Android's threading system

This commit is contained in:
Vitor Pamplona
2023-06-23 12:10:46 -04:00
parent 887fc33073
commit e8f5ef3aa3

View File

@@ -8,8 +8,6 @@ class NIP30Parser {
val customEmojiPattern: Pattern = Pattern.compile("\\:([A-Za-z0-9_\\-]+)\\:", Pattern.CASE_INSENSITIVE)
fun buildArray(input: String): List<String> {
checkNotInMainThread()
val matcher = customEmojiPattern.matcher(input)
val list = mutableListOf<String>()
while (matcher.find()) {