mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 05:19:25 +01:00
Merge pull request #2070 from slingamn/batchfix
fix incorrect chathistory batch types
This commit is contained in:
commit
07cc4f8354
@ -1059,7 +1059,7 @@ func (channel *Channel) replayHistoryItems(rb *ResponseBuffer, items []history.I
|
||||
}
|
||||
}
|
||||
|
||||
batchID := rb.StartNestedBatch(chname, "chathistory")
|
||||
batchID := rb.StartNestedBatch("chathistory", chname)
|
||||
defer rb.EndNestedBatch(batchID)
|
||||
|
||||
for _, item := range items {
|
||||
|
@ -850,7 +850,7 @@ func (client *Client) replayPrivmsgHistory(rb *ResponseBuffer, items []history.I
|
||||
if target == "" {
|
||||
target = nick
|
||||
}
|
||||
batchID = rb.StartNestedBatch(target, "chathistory")
|
||||
batchID = rb.StartNestedBatch("chathistory", target)
|
||||
|
||||
isSelfMessage := func(item *history.Item) bool {
|
||||
// XXX: Params[0] is the message target. if the source of this message is an in-memory
|
||||
|
Loading…
Reference in New Issue
Block a user