Explorar o código

Fix backfill in private chat portal with self

Tulir Asokan %!s(int64=5) %!d(string=hai) anos
pai
achega
8f805c539a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      portal.go

+ 1 - 1
portal.go

@@ -698,7 +698,7 @@ func (portal *Portal) beginBackfill() func() {
 	portal.backfilling = true
 	var privateChatPuppetInvited bool
 	var privateChatPuppet *Puppet
-	if portal.IsPrivateChat() && portal.bridge.Config.Bridge.InviteOwnPuppetForBackfilling {
+	if portal.IsPrivateChat() && portal.bridge.Config.Bridge.InviteOwnPuppetForBackfilling && portal.Key.JID != portal.Key.Receiver {
 		privateChatPuppet = portal.bridge.GetPuppetByJID(portal.Key.Receiver)
 		portal.privateChatBackfillInvitePuppet = func() {
 			if privateChatPuppetInvited {