diff --git a/src/roster_window.py b/src/roster_window.py index 293a37358..0d65adf18 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -4265,7 +4265,8 @@ class RosterWindow: child_iter = model.iter_next(child_iter) session = None if first_ev: - session = first_ev.parameters[8] + if first_ev.type_ in ('chat', 'normal'): + session = first_ev.parameters[8] fjid = jid if resource: fjid += '/' + resource