duytq94/flutter-chat-demo

onSendMessage() not writing to Firestore after Firestore update

horgag1 opened this issue · 2 comments

Firestore.instance.runTransaction((transaction) async {
         await transaction.set(
          documentReference,
          {
            'idFrom': id,
            'idTo': peerId,
            'timestamp': DateTime.now().millisecondsSinceEpoch.toString(),
            'content': content,
            'type': type
          },
        );

Dosen't write to Firestore...

was using a beta version of Flutter, switching to stable solved the problem

Happy to hear you solved the problem. But at that time, I'm also in the beta channel and don't get the issue. That's quite strange.