• robotjini's avatar
    Fixed three issues related to chatroom loading speed: · db3fe201
    robotjini authored
    1.Changed the loading of moderator roles until after the room loads up so it does not block the loading of the ui. There isn't actually anything that uses the moderator roles right now, so i am leaving it to the implementer of that on how to best handle the delayed information. I wanted to make sure the functionality was the same after the changes though rather than just deleting it.
    
    2. recycler_view was adding its adapter in showMessages this was causing the error: "E/RecyclerView: No adapter attached; skipping layout"
    This seems to be the cause of a missed update step and ui delay. Code to add adapter was added to setupRecyclerView, which is called in the onViewCreated function.
    
    3. loadActiveMembers function was being called from ChatRoomFragment object and the network / data access was being done in the UI thread. Moved the function call from the end of the function loadMessages to just after the end of said function. Changed the function loadActiveMembers to do most of its work in an I.O. thread and just the view updating in a UI thread.
    db3fe201
Name
Last commit
Last update
..
analytics Loading commit data...
app Loading commit data...
authentication Loading commit data...
chatdetails Loading commit data...
chatinformation Loading commit data...
chatroom Loading commit data...
chatrooms Loading commit data...
core/behaviours Loading commit data...
createchannel Loading commit data...
dagger Loading commit data...
db Loading commit data...
directory Loading commit data...
favoritemessages Loading commit data...
files Loading commit data...
helper Loading commit data...
infrastructure Loading commit data...
main Loading commit data...
members Loading commit data...
mentions Loading commit data...
pinnedmessages Loading commit data...
profile Loading commit data...
push Loading commit data...
server Loading commit data...
servers Loading commit data...
settings Loading commit data...
sortingandgrouping Loading commit data...
userdetails Loading commit data...
util Loading commit data...
videoconference Loading commit data...
webview Loading commit data...
widget Loading commit data...