Skip to content

Commit

Permalink
Fix the unexpected wait kw argument error, fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
immanuelfodor authored Dec 30, 2022
1 parent ef1d663 commit c4ee27c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xmpp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ def start(self, event):
self.get_roster()
self.send_presence()

self.plugin['xep_0045'].join_muc(self.room, self.nick, wait=True)
# TODO: join_muc has been refactored in upstream since the creation of the gateway,
# so instead of the original `wait=True`, we might need to use the new
# `join_muc_wait` function in the future if the wait is necessary.
# @see: https://github.com/immanuelfodor/xmpp-muc-message-gateway/issues/3
self.plugin['xep_0045'].join_muc(self.room, self.nick)

self.send_message(mto=self.room, mbody=self.message, mtype='groupchat')
time.sleep(1)
Expand Down

0 comments on commit c4ee27c

Please sign in to comment.