Skip to content

Commit

Permalink
fix(federation): chat object passed to db
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMissx committed Dec 14, 2023
1 parent f6b5c4c commit 5d7e414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anjani/plugins/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ async def cmd_fban(
for key, err_msg in failed.items():
text += f"failed to fban on chat {key} caused by {err_msg}\n\n"
# Remove the chat federation
await self.db.update_one({"_id": data["_id"]}, {"$pull": {"chats": chat}})
await self.db.update_one({"_id": data["_id"]}, {"$pull": {"chats": chat.id}})
text += f"**Those chat has leaved the federation {data['name']}!**"
await ctx.respond(text, mode="reply", reference=ctx.response)

Expand Down

0 comments on commit 5d7e414

Please sign in to comment.