Browse Source

Fix backfill in private chat portal with self

Tulir Asokan 5 năm trước cách đây
mục cha
commit
8f805c539a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      portal.go

+ 1 - 1
portal.go

@@ -698,7 +698,7 @@ func (portal *Portal) beginBackfill() func() {
 	portal.backfilling = true
 	portal.backfilling = true
 	var privateChatPuppetInvited bool
 	var privateChatPuppetInvited bool
 	var privateChatPuppet *Puppet
 	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)
 		privateChatPuppet = portal.bridge.GetPuppetByJID(portal.Key.Receiver)
 		portal.privateChatBackfillInvitePuppet = func() {
 		portal.privateChatBackfillInvitePuppet = func() {
 			if privateChatPuppetInvited {
 			if privateChatPuppetInvited {