diff --git a/lib.go b/lib.go index 693a9a5..d42ce1c 100644 --- a/lib.go +++ b/lib.go @@ -630,6 +630,12 @@ func ImportBundle(profileOnion string, bundle string) { if err == nil { response = groupHandler.HandleImportString(profile, bundle) eventHandler.Push(event.NewEvent(event.AppError, map[event.Field]string{event.Data: response.Error()})) + + // We might have added a new server, so refresh the server list... + serverListForOnion := groupHandler.GetServerInfoList(profile) + serversListBytes, _ := json.Marshal(serverListForOnion) + eventHandler.Push(event.NewEvent(groups.UpdateServerInfo, map[event.Field]string{"ProfileOnion": profileOnion, groups.ServerList: string(serversListBytes)})) + } } eventHandler.Push(event.NewEvent(event.AppError, map[event.Field]string{event.Data: response.Error()}))