Skip to content
Snippets Groups Projects
Commit 3b3d7d6b authored by Alexander Olofsson's avatar Alexander Olofsson
Browse files

examples/simple_client: Fix event listener args

parent b775d0dc
No related branches found
No related tags found
No related merge requests found
...@@ -111,7 +111,7 @@ if $PROGRAM_NAME == __FILE__ ...@@ -111,7 +111,7 @@ if $PROGRAM_NAME == __FILE__
# Only retrieve list of joined room in first sync # Only retrieve list of joined room in first sync
sync_filter = client.sync_filter.merge(ROOM_DISCOVERY_FILTER) sync_filter = client.sync_filter.merge(ROOM_DISCOVERY_FILTER)
sync_filter[:room][:state][:senders] << client.mxid sync_filter[:room][:state][:senders] << client.mxid
client.listen_for_events(5, filter: sync_filter.to_json) client.listen_for_events(timeout: 5, filter: sync_filter.to_json)
puts 'Finding room...' puts 'Finding room...'
room = client.find_room(ARGV.last) room = client.find_room(ARGV.last)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment