Update lib/src/Store.dart

This commit is contained in:
Christian 2019-06-12 07:30:12 +00:00
parent 4c56424bab
commit 01166cf057

View file

@ -184,7 +184,7 @@ class Store {
switch (userUpdate.eventType) { switch (userUpdate.eventType) {
case "m.direct": case "m.direct":
print("New direct update: ${userUpdate.content}"); print("New direct update: ${userUpdate.content}");
if (userUpdate.content["content"] is Map<String, List<String>>) { if (userUpdate.content["content"] is Map<String, List<dynamic>>) {
print("Is a Map of String to List of Strings"); print("Is a Map of String to List of Strings");
Map<String, List<String>> directMap = userUpdate.content["content"]; Map<String, List<String>> directMap = userUpdate.content["content"];
directMap.forEach((String key, List<String> value) { directMap.forEach((String key, List<String> value) {