forked from External/ergo
fix #833
This commit is contained in:
parent
c414ac383c
commit
d967129446
4 changed files with 69 additions and 75 deletions
|
|
@ -1563,15 +1563,18 @@ func (client *Client) historyStatus(config *Config) (status HistoryStatus, targe
|
|||
}
|
||||
|
||||
client.stateMutex.RLock()
|
||||
loggedIn := client.account != ""
|
||||
target = client.account
|
||||
historyStatus := client.accountSettings.DMHistory
|
||||
target = client.nickCasefolded
|
||||
client.stateMutex.RUnlock()
|
||||
|
||||
if !loggedIn {
|
||||
if target == "" {
|
||||
return HistoryEphemeral, ""
|
||||
}
|
||||
return historyEnabled(config.History.Persistent.DirectMessages, historyStatus), target
|
||||
status = historyEnabled(config.History.Persistent.DirectMessages, historyStatus)
|
||||
if status != HistoryPersistent {
|
||||
target = ""
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// these are bit flags indicating what part of the client status is "dirty"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue