Commit 8ee9abdd authored by Maxime Buquet's avatar Maxime Buquet

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

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 7587b954
Pipeline #2549 failed with stages
in 1 minute and 30 seconds
......@@ -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):
@property
def jid(self) -> JID:
return self._jid
return copy.copy(self._jid)
@jid.setter
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