mirror of
https://github.com/jeremyd/ergo.git
synced 2026-04-30 09:29:59 -07:00
fix #1615
Remove the CHATHISTORY * and znc.in/playback *self targets, clean up associated database code, add new mechanisms to play all missed DMs.
This commit is contained in:
@@ -862,6 +862,10 @@ func (server *Server) setupListeners(config *Config) (err error) {
|
||||
// we may already know the channel we're querying, or we may have
|
||||
// to look it up via a string query. This function is responsible for
|
||||
// privilege checking.
|
||||
// XXX: call this with providedChannel==nil and query=="" to get a sequence
|
||||
// suitable for ListCorrespondents (i.e., this function is still used to
|
||||
// decide whether the ringbuf or mysql is authoritative about the client's
|
||||
// message history).
|
||||
func (server *Server) GetHistorySequence(providedChannel *Channel, client *Client, query string) (channel *Channel, sequence history.Sequence, err error) {
|
||||
config := server.Config()
|
||||
// 4 cases: {persistent, ephemeral} x {normal, conversation}
|
||||
@@ -901,7 +905,7 @@ func (server *Server) GetHistorySequence(providedChannel *Channel, client *Clien
|
||||
}
|
||||
} else {
|
||||
status, target = client.historyStatus(config)
|
||||
if query != "*" {
|
||||
if query != "" {
|
||||
correspondent, err = CasefoldName(query)
|
||||
if err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user