room-15/ChatSE

Joining a room duplicates the items in the adapter list

AdamMc331 opened this issue · 4 comments

I joined the Sandbox room on SE and all the sudden the lists inside the navigation drawer doubled.

Part of this fix is going to be to remove the two recyclerviews and switch it to one.

Thought: If we make this a Set instead of List, the data structure could handle preventing dupes for us.

Fixed this bug. Was calling the add rooms on every new event. Now only calls on first load and when adding a room from the dialog.

This can be improved a lot in the future with some major refactoring and cleanups, for now works fine.