Ver código fonte

Merge pull request #2070 from slingamn/batchfix

fix incorrect chathistory batch types
tags/v2.12.0-rc1
Shivaram Lingamneni 1 ano atrás
pai
commit
07cc4f8354
Nenhuma conta vinculada ao e-mail do autor do commit
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1
    1
      irc/channel.go
  2. 1
    1
      irc/client.go

+ 1
- 1
irc/channel.go Ver arquivo

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 Ver arquivo

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

Carregando…
Cancelar
Salvar