mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Fixed/improved emoji tests, made emoji service always callback on the main queue.
This commit is contained in:
committed by
Stefan Ceriu
parent
59ae95731c
commit
e79a09ef43
@@ -41,9 +41,13 @@ final class EmojiMartService: EmojiServiceType {
|
||||
let emojiJSONData = try self.getEmojisJSONData()
|
||||
let emojiJSONStore: EmojiMartStore = try self.serializationService.deserialize(emojiJSONData)
|
||||
let emojiCategories = self.emojiCategories(from: emojiJSONStore)
|
||||
completion(MXResponse.success(emojiCategories))
|
||||
DispatchQueue.main.async {
|
||||
completion(MXResponse.success(emojiCategories))
|
||||
}
|
||||
} catch {
|
||||
completion(MXResponse.failure(error))
|
||||
DispatchQueue.main.async {
|
||||
completion(MXResponse.failure(error))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user