Skip to content

debug_console.py: disable Stream Management by default

Sergey Ponomarev requested to merge stokito/gajim:patch-1 into master

The SM produces a lot of packets that are not important when debugging.

<r xmlns="urn:xmpp:sm:3" />
<a xmlns="urn:xmpp:sm:3" h="841" />

A user can enable it yourself if needed.

Gajim Debug Stream Management

Just setting the field to False is not enough because we need to apply a filter. So to the end I added a call of of the _set_account()

def _set_account(self, value: str, _data: Any) -> None:
    self._selected_account = value
    self._set_title()
    self._apply_filters()

Internally it sets the _selected_account and calls the _set_title() so I removed this two lines that does the same

Edited by Sergey Ponomarev

Merge request reports

Loading