Browse Source

fix incorrect chathistory batch types

This was introduced in 38a6d17ee5
tags/v2.12.0-rc1
Shivaram Lingamneni 1 year ago
parent
commit
f100c1d0fa
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      irc/channel.go
  2. 1
    1
      irc/client.go

+ 1
- 1
irc/channel.go View File

1059
 		}
1059
 		}
1060
 	}
1060
 	}
1061
 
1061
 
1062
-	batchID := rb.StartNestedBatch(chname, "chathistory")
1062
+	batchID := rb.StartNestedBatch("chathistory", chname)
1063
 	defer rb.EndNestedBatch(batchID)
1063
 	defer rb.EndNestedBatch(batchID)
1064
 
1064
 
1065
 	for _, item := range items {
1065
 	for _, item := range items {

+ 1
- 1
irc/client.go View File

850
 	if target == "" {
850
 	if target == "" {
851
 		target = nick
851
 		target = nick
852
 	}
852
 	}
853
-	batchID = rb.StartNestedBatch(target, "chathistory")
853
+	batchID = rb.StartNestedBatch("chathistory", target)
854
 
854
 
855
 	isSelfMessage := func(item *history.Item) bool {
855
 	isSelfMessage := func(item *history.Item) bool {
856
 		// XXX: Params[0] is the message target. if the source of this message is an in-memory
856
 		// XXX: Params[0] is the message target. if the source of this message is an in-memory

Loading…
Cancel
Save