Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
-
d2d5a377
by Philipp Hörist at 2019-08-21T16:11:32Z
-
36d685a8
by Philipp Hörist at 2019-08-21T19:10:12Z
1 changed file:
Changes:
| ... | ... | @@ -201,6 +201,17 @@ class DiscoInfo(namedtuple('DiscoInfo', 'stanza identities features dataforms ti |
| 201 | 201 |
|
| 202 | 202 |
@property
|
| 203 | 203 |
def muc_name(self):
|
| 204 |
+ if self.muc_room_name:
|
|
| 205 |
+ return self.muc_room_name
|
|
| 206 |
+ |
|
| 207 |
+ if self.muc_identity_name:
|
|
| 208 |
+ return self.muc_identity_name
|
|
| 209 |
+ |
|
| 210 |
+ if self.jid is not None:
|
|
| 211 |
+ return self.jid.getNode()
|
|
| 212 |
+ |
|
| 213 |
+ @property
|
|
| 214 |
+ def muc_identity_name(self):
|
|
| 204 | 215 |
for identity in self.identities:
|
| 205 | 216 |
if identity.category == 'conference':
|
| 206 | 217 |
return identity.name
|