Commit 275651a0 authored by gergely-ujvari's avatar gergely-ujvari

Call applySort() at the startup

If not doing this the rootScope.predicate etc. variables are not set and angular silently fails sorting

Fixes #1150
parent 4f01acf5
......@@ -157,7 +157,7 @@ class App
$scope.$broadcast '$reset'
$rootScope.viewState =
sort: 'Newest'
sort: ''
view: 'Screen'
# Show the sort/view control for a while.
......@@ -220,6 +220,7 @@ class App
$rootScope.searchPredicate = 'message.target[0].selector[2].start'
$rootScope.reverse = false
$rootScope.applySort "Newest"
# Clean up the searchbar
$scope.leaveSearch = =>
......
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