basetabs: return a copy of ChatTab.jid to prevent nasty (mutability) side-effects

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <>
parent 7587b954
......@@ -13,6 +13,7 @@ This module also defines ChatTabs, the parent class for all tabs
revolving around chats.
import copy
import logging
import string
import asyncio
......@@ -538,7 +539,7 @@ class ChatTab(Tab):
def jid(self) -> JID:
return self._jid
return copy.copy(self._jid)
def jid(self, value: JID) -> None:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment