Skip to content

Commit

Permalink
Removed Imple of Read Reciepts
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedAbidNafi committed Jun 2, 2021
1 parent 923542d commit 748b9ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ public class MessageAdapter extends RecyclerView.Adapter<MessageAdapter.ViewHold
public static final int REPLY_TYPE_LEFT = 2;
public static final int REPLY_TYPE_RIGHT = 3;

private final SharedPreferences sharedPreferences;




public MessageAdapter(Context mContext, List<Chat> mChat, String imageUrl,SharedPreferences sharedPreferences) {

public MessageAdapter(Context mContext, List<Chat> mChat, String imageUrl) {
this.mContext = mContext;
this.mChat = mChat;
this.imageUrl = imageUrl;
this.sharedPreferences = sharedPreferences;


}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,6 @@ public void onCancelled(@NonNull DatabaseError error) {

private void readMessage(String myid, String userid, String imageUrl){
mchat = new ArrayList<>();
SharedPreferences sharedPreferences = getSharedPreferences("ReadRecipents", 0);
databaseReference = FirebaseDatabase.getInstance().getReference("Chats");
databaseReference.keepSynced(true);
databaseReference.addValueEventListener(new ValueEventListener() {
Expand All @@ -837,7 +836,7 @@ public void onDataChange(@NonNull DataSnapshot snapshot) {



messageAdapter = new MessageAdapter(MessageActivity.this, mchat, imageUrl,sharedPreferences);
messageAdapter = new MessageAdapter(MessageActivity.this, mchat, imageUrl);
recyclerView.setAdapter(messageAdapter);


Expand Down

0 comments on commit 748b9ee

Please sign in to comment.