=== Test case: inbox_SUITE:unread_count_is_the_same_after_going_online_again/1 (click for source code)

=== Config value:

    [{watchdog,<0.24615.0>},
     {inbox_opts,#{aff_changes => true,
                   async_writer => #{pool_size => 8},
                   backend => rdbms,bin_clean_after => 3600000,bin_ttl => 30,
                   boxes => [<<"inbox">>,<<"archive">>,<<"bin">>,<<"other">>],
                   groupchat => [muc],
                   iqdisc => no_queue,remove_on_kicked => true,
                   reset_markers => [<<"displayed">>]}},
     {mim_data_dir,"/home/circleci/project/big_tests/tests/inbox_SUITE_data"},
     {preset,"pgsql_mnesia"},
     {tc_logfile,"/home/circleci/project/big_tests/ct_report/ct_run.test@3b05d744781a.2022-05-18_09.59.20/big_tests.tests.inbox_SUITE.logs/run.2022-05-18_10.02.37/inbox_suite.unread_count_is_the_same_after_going_online_again.36610.html"},
     {tc_group_properties,[{name,muc},parallel]},
     {tc_group_path,[[{name,regular}]]},
     {data_dir,"/home/circleci/project/big_tests/_build/default/lib/mongoose_tests/ebin/inbox_SUITE_data/"},
     {priv_dir,"/home/circleci/project/big_tests/ct_report/ct_run.test@3b05d744781a.2022-05-18_09.59.20/big_tests.tests.inbox_SUITE.logs/run.2022-05-18_10.02.37/log_private/"},
     {{saved_modules,mongooseim@localhost,<<"localhost">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_commands => #{},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_muc_commands => #{},mod_muc_light_commands => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}},
     {{saved_modules,mongooseim@localhost,<<"localhost.bis">>},
      #{mod_adhoc => #{iqdisc => one_queue,report_commands_node => false},
        mod_amp => #{},
        mod_bosh =>
            #{backend => mnesia,inactivity => 30,max_pause => 120,
              max_wait => infinity,server_acks => false},
        mod_cache_users =>
            #{number_of_segments => 5,strategy => fifo,time_to_live => 2},
        mod_carboncopy => #{iqdisc => no_queue},
        mod_commands => #{},
        mod_disco =>
            #{extra_domains => [],iqdisc => one_queue,server_info => [],
              users_can_see_hidden_services => false},
        mod_last => #{backend => mnesia,iqdisc => one_queue},
        mod_muc_commands => #{},mod_muc_light_commands => #{},
        mod_register =>
            #{access => register,
              ip_access => [{allow,"127.0.0.0/8"},{deny,"0.0.0.0/0"}],
              iqdisc => one_queue,password_strength => 0,
              registration_watchers => []},
        mod_roster =>
            #{backend => rdbms,iqdisc => one_queue,store_current_id => false,
              versioning => false},
        mod_sic => #{iqdisc => one_queue},
        mod_stream_management =>
            #{ack => true,ack_freq => 1,backend => mnesia,buffer => true,
              buffer_max => 100,resume_timeout => 600,
              stale_h =>
                  #{enabled => false,geriatric => 3600,repeat_after => 1800}},
        mod_vcard =>
            #{backend => rdbms,
              host => {prefix,<<"vjud.">>},
              iqdisc => parallel,matches => 30,search => true}}}]

=== Current directory is "/home/circleci/project/big_tests/ct_report/ct_run.test@3b05d744781a.2022-05-18_09.59.20"

=== Started at 2022-05-18 10:02:42


*** CT 2022-05-18 10:02:42.233 *** View log from node mongooseim@localhost when started mongooseim@localhost_1647.html
*** CT 2022-05-18 10:02:42.234 *** View log from node ejabberd2@localhost when started ejabberd2@localhost_401.html

*** User 2022-05-18 10:02:42.242 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:02:42.242 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='58a93c4dd6c09b8c' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:02:42.243 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-18 10:02:42.243 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGFsaWNFX3VucmVhZF9jb3VudF9pc190aGVfc2FtZV9hZnRlcl9nb2luZ19vbmxpbmVfYWdhaW5fOTQwAG1hdHlncnlzYQ==</auth>



*** User 2022-05-18 10:02:42.243 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-18 10:02:42.243 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:02:42.244 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='d2a1471b57522a96' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:02:42.244 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-18 10:02:42.244 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='6ceca901d34d87a893f8811c7311fd7c'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-18 10:02:42.244 ***
alicE_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq id='6ceca901d34d87a893f8811c7311fd7c' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-18 10:02:42.244 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='18847b11220173d8af26d7c63f070467'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:02:42.245 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq type='result' id='18847b11220173d8af26d7c63f070467'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:02:42.245 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<presence/>



*** User 2022-05-18 10:02:42.246 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:02:42.246 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:02:42.247 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4ef89cf42440b8c8' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:02:42.247 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-18 10:02:42.247 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGJPYl91bnJlYWRfY291bnRfaXNfdGhlX3NhbWVfYWZ0ZXJfZ29pbmdfb25saW5lX2FnYWluXzk0MABtYWtyb2xpa2E=</auth>



*** User 2022-05-18 10:02:42.248 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-18 10:02:42.248 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:02:42.248 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='21171460130d93a4' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:02:42.248 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-18 10:02:42.248 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='01f57489b3a4967db6c137ed0381df92'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-18 10:02:42.249 ***
bOb_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq id='01f57489b3a4967db6c137ed0381df92' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-18 10:02:42.249 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='f9afc7b5a6297c59c955453330f9601f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:02:42.249 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq type='result' id='f9afc7b5a6297c59c955453330f9601f'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:02:42.249 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<presence/>



*** User 2022-05-18 10:02:42.251 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:02:42.252 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:02:42.252 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='9e5ec4c28917fc58' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:02:42.252 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:features>
	<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
		<mechanism>SCRAM-SHA-256</mechanism>
		<mechanism>PLAIN</mechanism>
	</mechanisms>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-18 10:02:42.252 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<auth xmlns='urn:ietf:params:xml:ns:xmpp-sasl' mechanism='PLAIN'>AGthdGVfdW5yZWFkX2NvdW50X2lzX3RoZV9zYW1lX2FmdGVyX2dvaW5nX29ubGluZV9hZ2Fpbl85NDAAbWFrcm93ZTtw</auth>



*** User 2022-05-18 10:02:42.253 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>



*** User 2022-05-18 10:02:42.253 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<stream:stream to='localhost' version='1.0' xml:lang='en' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'>

*** User 2022-05-18 10:02:42.253 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' id='4570dd300b57487d' from='localhost' version='1.0' xml:lang='en'>

*** User 2022-05-18 10:02:42.253 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<stream:features>
	<compression xmlns='http://jabber.org/features/compress'>
		<method>zlib</method>
	</compression>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
	<register xmlns='http://jabber.org/features/iq-register'/>
	<amp xmlns='http://jabber.org/feature/amp'/>
	<sm xmlns='urn:xmpp:sm:3'/>
</stream:features>



*** User 2022-05-18 10:02:42.253 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='beb880351f5320f6b4e5301d78410f7b'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<resource>res1</resource>
	</bind>
</iq>



*** User 2022-05-18 10:02:42.254 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq id='beb880351f5320f6b4e5301d78410f7b' type='result'>
	<bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'>
		<jid>kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1</jid>
	</bind>
</iq>



*** User 2022-05-18 10:02:42.254 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='c78f94f4425cde31d302388d2fad4892'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:02:42.254 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq type='result' id='c78f94f4425cde31d302388d2fad4892'>
	<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>



*** User 2022-05-18 10:02:42.254 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<presence/>



*** User 2022-05-18 10:02:42.255 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'/>



*** User 2022-05-18 10:02:42.257 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<presence to='room-b1f99dad2d@muc.localhost/alice_unread_count_is_the_same_after_going_online_again_940'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2022-05-18 10:02:42.257 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<presence to='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2022-05-18 10:02:42.257 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<presence to='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2022-05-18 10:02:42.260 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' affiliation='none' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.260 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/alice_unread_count_is_the_same_after_going_online_again_940' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' affiliation='owner' role='moderator'/>
		<status code='110'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.261 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='room-b1f99dad2d@muc.localhost' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' type='groupchat'>
	<subject/>
	<body/>
</message>



*** User 2022-05-18 10:02:42.262 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' affiliation='none' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.262 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/alice_unread_count_is_the_same_after_going_online_again_940' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='owner' role='moderator'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.262 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='none' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.262 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='none' role='participant'/>
		<status code='110'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.264 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='room-b1f99dad2d@muc.localhost' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' type='groupchat'>
	<subject/>
	<body/>
</message>



*** User 2022-05-18 10:02:42.264 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='none' role='participant'/>
		<status code='110'/>
		<status code='201'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.264 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='room-b1f99dad2d@muc.localhost' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' type='groupchat'>
	<subject/>
	<body/>
</message>



*** User 2022-05-18 10:02:42.264 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/alice_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='owner' role='moderator'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.264 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='none' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.264 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='a91dfe16953574314627e7a41cd8b698' to='room-b1f99dad2d@muc.localhost'>
	<query xmlns='http://jabber.org/protocol/muc#admin'>
		<item jid='bob_unread_count_is_the_same_after_going_online_again_940@localhost' affiliation='member'/>
		<item jid='kate_unread_count_is_the_same_after_going_online_again_940@localhost' affiliation='member'/>
	</query>
</iq>



*** User 2022-05-18 10:02:42.265 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' affiliation='member' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.265 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' affiliation='member' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.266 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq from='room-b1f99dad2d@muc.localhost' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' id='a91dfe16953574314627e7a41cd8b698' type='result'>
	<query xmlns='http://jabber.org/protocol/muc#admin'/>
</iq>



*** User 2022-05-18 10:02:42.266 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='member' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.266 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='member' role='participant'/>
		<status code='110'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.266 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='member' role='participant'/>
		<status code='110'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.266 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='member' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.266 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<presence type='unavailable' to='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940'/>



*** User 2022-05-18 10:02:42.267 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en' type='unavailable'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' affiliation='member' role='none'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.268 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en' type='unavailable'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='member' role='none'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.268 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en' type='unavailable'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='member' role='none'/>
		<status code='110'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.268 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<message to='room-b1f99dad2d@muc.localhost' type='groupchat' id='MyID'>
	<body>Hi Room!</body>
</message>



*** User 2022-05-18 10:02:42.285 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en' type='groupchat' id='MyID'>
	<body>Hi Room!</body>
</message>



*** User 2022-05-18 10:02:42.285 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en' type='groupchat' id='MyID'>
	<body>Hi Room!</body>
</message>



*** User 2022-05-18 10:02:42.285 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<presence to='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940'>
	<x xmlns='http://jabber.org/protocol/muc'/>
</presence>



*** User 2022-05-18 10:02:42.292 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item jid='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' affiliation='member' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.293 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='member' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.294 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/alice_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='owner' role='moderator'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.294 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='member' role='participant'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.294 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<presence from='room-b1f99dad2d@muc.localhost/kate_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en'>
	<x xmlns='http://jabber.org/protocol/muc#user'>
		<item affiliation='member' role='participant'/>
		<status code='110'/>
	</x>
</presence>



*** User 2022-05-18 10:02:42.294 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' xml:lang='en' type='groupchat' id='MyID'>
	<body>Hi Room!</body>
	<delay xmlns='urn:xmpp:delay' stamp='2022-05-18T10:02:42Z' from='room-b1f99dad2d@muc.localhost'/>
</message>



*** User 2022-05-18 10:02:42.294 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='room-b1f99dad2d@muc.localhost' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' type='groupchat'>
	<subject/>
	<body/>
</message>



*** User 2022-05-18 10:02:42.294 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='13252349dacc6d9155aac9b4b5b60146'>
	<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<x xmlns='jabber:x:data' type='submit'>
			<field type='hidden' var='FORM_TYPE'>
				<value>erlang-solutions.com:xmpp:inbox:0</value>
			</field>
			<field type='text-single' var='hidden_read'>
				<value>false</value>
			</field>
		</x>
	</inbox>
</iq>



*** User 2022-05-18 10:02:42.296 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='bob_unread_count_is_the_same_after_going_online_again_940@localhost' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' id='1652-868162-295609'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='0' queryid='13252349dacc6d9155aac9b4b5b60146'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-05-18T10:02:42.275259Z'/>
			<message from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost' xml:lang='en' type='groupchat' id='MyID'>
				<body>Hi Room!</body>
			</message>
		</forwarded>
		<box>inbox</box>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2022-05-18 10:02:42.296 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq from='bob_unread_count_is_the_same_after_going_online_again_940@localhost' to='bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1' id='13252349dacc6d9155aac9b4b5b60146' type='result'>
	<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<active-conversations>0</active-conversations>
		<count>1</count>
		<unread-messages>0</unread-messages>
	</fin>
</iq>



*** User 2022-05-18 10:02:42.296 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='b85a578bb3a2e59cefd70aded25d073d'>
	<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<x xmlns='jabber:x:data' type='submit'>
			<field type='hidden' var='FORM_TYPE'>
				<value>erlang-solutions.com:xmpp:inbox:0</value>
			</field>
			<field type='text-single' var='hidden_read'>
				<value>false</value>
			</field>
		</x>
	</inbox>
</iq>



*** User 2022-05-18 10:02:42.298 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='alice_unread_count_is_the_same_after_going_online_again_940@localhost' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' id='1652-868162-298114'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='1' queryid='b85a578bb3a2e59cefd70aded25d073d'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-05-18T10:02:42.269315Z'/>
			<message from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost' xml:lang='en' type='groupchat' id='MyID'>
				<body>Hi Room!</body>
			</message>
		</forwarded>
		<box>inbox</box>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2022-05-18 10:02:42.298 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq from='alice_unread_count_is_the_same_after_going_online_again_940@localhost' to='alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1' id='b85a578bb3a2e59cefd70aded25d073d' type='result'>
	<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<active-conversations>1</active-conversations>
		<count>1</count>
		<unread-messages>1</unread-messages>
	</fin>
</iq>



*** User 2022-05-18 10:02:42.298 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
<iq type='set' id='2aa03c47373d8ac1d415f9b7898962e2'>
	<inbox xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<x xmlns='jabber:x:data' type='submit'>
			<field type='hidden' var='FORM_TYPE'>
				<value>erlang-solutions.com:xmpp:inbox:0</value>
			</field>
			<field type='text-single' var='hidden_read'>
				<value>false</value>
			</field>
		</x>
	</inbox>
</iq>



*** User 2022-05-18 10:02:42.300 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<message from='kate_unread_count_is_the_same_after_going_online_again_940@localhost' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' id='1652-868162-299767'>
	<result xmlns='erlang-solutions.com:xmpp:inbox:0' unread='1' queryid='2aa03c47373d8ac1d415f9b7898962e2'>
		<forwarded xmlns='urn:xmpp:forward:0'>
			<delay xmlns='urn:xmpp:delay' stamp='2022-05-18T10:02:42.281085Z'/>
			<message from='room-b1f99dad2d@muc.localhost/bob_unread_count_is_the_same_after_going_online_again_940' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost' xml:lang='en' type='groupchat' id='MyID'>
				<body>Hi Room!</body>
			</message>
		</forwarded>
		<box>inbox</box>
		<archive>false</archive>
		<mute>0</mute>
	</result>
</message>



*** User 2022-05-18 10:02:42.300 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
<iq from='kate_unread_count_is_the_same_after_going_online_again_940@localhost' to='kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1' id='2aa03c47373d8ac1d415f9b7898962e2' type='result'>
	<fin xmlns='erlang-solutions.com:xmpp:inbox:0'>
		<active-conversations>1</active-conversations>
		<count>1</count>
		<unread-messages>1</unread-messages>
	</fin>
</iq>



*** User 2022-05-18 10:02:42.300 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
</stream:stream>

*** User 2022-05-18 10:02:42.301 ***
kate_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
</stream:stream>

*** User 2022-05-18 10:02:42.301 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
</stream:stream>

*** User 2022-05-18 10:02:42.301 ***
bob_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
</stream:stream>

*** User 2022-05-18 10:02:42.301 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 out
</stream:stream>

*** User 2022-05-18 10:02:42.301 ***
alice_unread_count_is_the_same_after_going_online_again_940@localhost/res1 in
</stream:stream>
*** CT 2022-05-18 10:02:42.309 *** View log from node ejabberd2@localhost when finished ejabberd2@localhost_401.html
*** CT 2022-05-18 10:02:42.309 *** View log from node mongooseim@localhost when finished mongooseim@localhost_1647.html



=== Ended at 2022-05-18 10:02:42
=== successfully completed test case
=== === Returned value: ok