Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #283 from meower-media/tnix-fix-post-pinning
Browse files Browse the repository at this point in the history
fix not being able to toggle allow_pinning on chats
  • Loading branch information
tnix100 authored Aug 14, 2024
2 parents 98d8a78 + d59fd46 commit f72eab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_api/v0/chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ async def update_chat(chat_id, data: ChatBody):
if data.icon is None or chat["icon"] == data.icon:
app.supporter.create_post(chat_id, "Server", f"@{request.user} changed the icon of the group chat.", chat_members=chat["members"])
if data.allow_pinning is not None:
chat["allow_pinning"] = data.allow_pinning
updated_vals["allow_pinning"] = data.allow_pinning

# Update chat
db.chats.update_one({"_id": chat_id}, {"$set": updated_vals})
Expand Down

0 comments on commit f72eab1

Please sign in to comment.