diff --git a/src/gajim.py b/src/gajim.py
index 83382f7de3d9be2bee7856f3b13955e180b893c3..3645c1c1f7c955f78820f2e545f09c03e37f8c1a 100644
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -3247,7 +3247,6 @@ class Interface:
 	def __init__(self):
 		gajim.interface = self
 		gajim.thread_interface = ThreadInterface
-		gajim.logger.reset_shown_unread_messages()
 		# This is the manager and factory of message windows set by the module
 		self.msg_win_mgr = None
 		self.jabber_state_images = {'16': {}, '32': {}, 'opened': {},
@@ -3268,6 +3267,7 @@ class Interface:
 		}
 
 		cfg_was_read = parser.read()
+		gajim.logger.reset_shown_unread_messages()
 		# override logging settings from config (don't take care of '-q' option)
 		if gajim.config.get('verbose'):
 			logging_helpers.set_verbose()