We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7944823 + ff1e875 commit 7ac1953Copy full SHA for 7ac1953
app/src/main/java/com/firebase/uidemo/database/ChatActivity.java
@@ -77,7 +77,7 @@ public void onClick(View v) {
77
String uid = mAuth.getCurrentUser().getUid();
78
String name = "User " + uid.substring(0, 6);
79
80
- Chat chat = new Chat(name, uid, mMessageEdit.getText().toString());
+ Chat chat = new Chat(name, mMessageEdit.getText().toString(), uid);
81
mChatRef.push().setValue(chat, new DatabaseReference.CompletionListener() {
82
@Override
83
public void onComplete(DatabaseError databaseError, DatabaseReference reference) {
0 commit comments