From 1fc6d6b4a24f904ca2bd1988108d3c2cba2e10d2 Mon Sep 17 00:00:00 2001 From: Nicolas Perriault Date: Sat, 13 May 2017 11:54:35 +0200 Subject: [PATCH] Clean timelines when switching accounts. --- src/Update/Main.elm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Update/Main.elm b/src/Update/Main.elm index b6ac43f..00afad2 100644 --- a/src/Update/Main.elm +++ b/src/Update/Main.elm @@ -61,6 +61,15 @@ update msg model = in { model | clients = newClients + , homeTimeline = Update.Timeline.empty "home-timeline" + , localTimeline = Update.Timeline.empty "local-timeline" + , globalTimeline = Update.Timeline.empty "global-timeline" + , accountTimeline = Update.Timeline.empty "account-timeline" + , accountFollowers = Update.Timeline.empty "account-followers" + , accountFollowing = Update.Timeline.empty "account-following" + , notifications = Update.Timeline.empty "notifications" + , accountRelationships = [] + , accountRelationship = Nothing , currentView = Update.Timeline.preferred model } ! [ Command.loadUserAccount <| Just client