mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-11-25 08:30:04 +00:00
bug fixes and improvements
- aliases are now handled properly in ABCH - removed final escargot leftovers (dev webconsole) - OSCAR etc. logging was not at log level debug - removed leftover debug code
This commit is contained in:
1 parent
4bf878556b
commit
6451bb9426
46 files changed
+307
-541
No files matched your search
+10
-4
@@ -1169,7 +1169,7 @@ class BackendSession(Session):
|
||||
ctc = self._add_to_list(user, ctc_head, lst, name, group_id, nickname = nickname)
|
||||
if lst & ContactList.FL:
|
||||
# FL needs a matching RL on the contact
|
||||
ctc_me = self._add_to_list(ctc_head, user, ContactList.RL, user.email, None) # type: Optional[Contact]
|
||||
ctc_me = self._add_to_list(ctc_head, user, ContactList.RL, backend.util_get_display_email(user), None) # type: Optional[Contact]
|
||||
# `ctc_head` was added to `user`'s RL
|
||||
for sess_added in backend._sc.get_sessions_by_user(ctc_head):
|
||||
#if sess_added is self: continue
|
||||
@@ -1267,9 +1267,15 @@ class BackendSession(Session):
|
||||
contacts = detail.contacts
|
||||
|
||||
updated = False
|
||||
display_email = self.backend.util_get_display_email(ctc_head)
|
||||
if name is not None and isinstance(name, str) and (
|
||||
name.lower() in (ctc_head.email.lower(), display_email.lower())
|
||||
or (name.lower().endswith('@crosstalk.im') and self.backend.util_get_uuid_from_email(name) == ctc_head.uuid)
|
||||
):
|
||||
name = display_email
|
||||
|
||||
if ctc_head.uuid not in contacts:
|
||||
contacts[ctc_head.uuid] = Contact(ctc_head, set(), ContactList.Empty, UserStatus(name or ctc_head.email), ContactDetail(_gen_contact_id(detail)))
|
||||
contacts[ctc_head.uuid] = Contact(ctc_head, set(), ContactList.Empty, UserStatus(name or display_email), ContactDetail(_gen_contact_id(detail)))
|
||||
updated = True
|
||||
ctc = contacts[ctc_head.uuid]
|
||||
|
||||
@@ -1435,8 +1441,8 @@ They've attached this message, as well:
|
||||
membership.role = CircleRole.StatePendingOutbound
|
||||
membership.state = CircleState.WaitingResponse
|
||||
membership.inviter_uuid = inviter.uuid
|
||||
membership.inviter_email = inviter.email
|
||||
membership.inviter_name = inviter.status.name or inviter.email
|
||||
membership.inviter_email = backend.util_get_display_email(inviter)
|
||||
membership.inviter_name = inviter.status.name or backend.util_get_display_email(inviter)
|
||||
membership.invite_message = invite_message
|
||||
|
||||
self.backend._mark_circle_modified(circle)
|
||||
|
||||
Reference in new issue
Block a user