Commit 03bfdde3 authored by Noor Binte Amir's avatar Noor Binte Amir

Update ChatRoomsViewModel.kt

Fixed variable names.
parent 6d2c19b5
...@@ -172,10 +172,10 @@ fun Query.asSortingOrder(): ChatRoomsRepository.Order { ...@@ -172,10 +172,10 @@ fun Query.asSortingOrder(): ChatRoomsRepository.Order {
ChatRoomsRepository.Order.GROUPED_NAME ChatRoomsRepository.Order.GROUPED_NAME
} }
else if(unreadOnTop && !grouped){ else if(unreadOnTop && !grouped){
ChatRoomsRepository.Order.UNREADONTOP_NAME ChatRoomsRepository.Order.UNREAD_ON_TOP_NAME
} }
else if(unreadOnTop && grouped){ else if(unreadOnTop && grouped){
ChatRoomsRepository.Order.UNREADONTOP_GROUPED_NAME ChatRoomsRepository.Order.UNREAD_ON_TOP_GROUPED_NAME
} }
else { else {
ChatRoomsRepository.Order.NAME ChatRoomsRepository.Order.NAME
...@@ -186,10 +186,10 @@ fun Query.asSortingOrder(): ChatRoomsRepository.Order { ...@@ -186,10 +186,10 @@ fun Query.asSortingOrder(): ChatRoomsRepository.Order {
ChatRoomsRepository.Order.GROUPED_ACTIVITY ChatRoomsRepository.Order.GROUPED_ACTIVITY
} }
else if(unreadOnTop && !grouped){ else if(unreadOnTop && !grouped){
ChatRoomsRepository.Order.UNREADONTOP_ACTIVITY ChatRoomsRepository.Order.UNREAD_ON_TOP_ACTIVITY
} }
else if(unreadOnTop && grouped){ else if(unreadOnTop && grouped){
ChatRoomsRepository.Order.UNREADONTOP_GROUPED_ACTIVITY ChatRoomsRepository.Order.UNREAD_ON_TOP_GROUPED_ACTIVITY
} }
else { else {
ChatRoomsRepository.Order.ACTIVITY ChatRoomsRepository.Order.ACTIVITY
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment