Save state of root and profile panes open, and selected profile and conversation; jump to those when reloading #443

Merged
erinn merged 2 commits from :stateful into master 2020-12-07 23:24:35 +00:00
Owner
No description provided.
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/903

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/903
sarah reviewed 2020-12-05 01:47:43 +00:00
main.go Outdated
@ -86,3 +87,3 @@
if *flagDebug {
log.SetLevel(log.LevelDebug)
} else {
} else if *flagInfo {

Doesn't this violate standard convention? I would assume:

Fatal - Always Crashes
Error - Always Show - action required
Warn - Always Show - automatic recovery
Info - Default
Debug - 1-level Debug
Trace - 2-level Debug

Doesn't this violate standard convention? I would assume: Fatal - Always Crashes Error - Always Show - action required Warn - Always Show - automatic recovery Info - Default Debug - 1-level Debug Trace - 2-level Debug
Author
Owner

reverted

reverted
Author
Owner

and changed two other things to debug :)

and changed two other things to debug :)
main.go Outdated
@ -95,3 +95,2 @@
}
log.ExcludeFromPattern("connection/connection")
//log.ExcludeFromPattern("outbound/3dhauthchannel")
log.ExcludeFromPattern("outbound/3dhauthchannel")

I'm 99% sure this doesn't even exist anymore

I'm 99% sure this doesn't even exist anymore
Author
Owner

removed

removed
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/904

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/904
erinn requested changes 2020-12-07 22:46:13 +00:00
go/ui/gcd.go Outdated
@ -791,0 +825,4 @@
selectedPane, pok := the.Peer.GetAttribute(attr.GetSettingsScope(constants.StateProfilePane))
if pok {
selectedPaneId, ok := strconv.Atoi(selectedPane)
if ok == nil {

nit: ok -> err

nit: ok -> err
go/ui/gcd.go Outdated
@ -791,0 +836,4 @@
this.TimelineInterface.handle = selectedContact
this.loadMessagesPane(selectedContact)
if len(selectedContact) == 56 { // peer

nit: !Utils.isGroup(selectedContact)

nit: !Utils.isGroup(selectedContact)
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/905

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/905
erinn merged commit e5fce8634e into master 2020-12-07 23:24:34 +00:00
Member

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/906

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/906
This repo is archived. You cannot comment on pull requests.
No description provided.