leadguru-jobs 0.672.0__py3-none-any.whl → 0.674.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {leadguru_jobs-0.672.0.dist-info → leadguru_jobs-0.674.0.dist-info}/METADATA +1 -1
- {leadguru_jobs-0.672.0.dist-info → leadguru_jobs-0.674.0.dist-info}/RECORD +5 -5
- lgt_jobs/lgt_data/models/notifications/notification.py +7 -0
- {leadguru_jobs-0.672.0.dist-info → leadguru_jobs-0.674.0.dist-info}/WHEEL +0 -0
- {leadguru_jobs-0.672.0.dist-info → leadguru_jobs-0.674.0.dist-info}/top_level.txt +0 -0
@@ -76,7 +76,7 @@ lgt_jobs/lgt_data/models/leads/extended_lead.py,sha256=ezFrKv-f5GBXr3QAM-V_qJQ-i
|
|
76
76
|
lgt_jobs/lgt_data/models/leads/lead.py,sha256=mTZh8YV06nX9OWYvv_X7rDdIperB-RPChrEuheeYMU0,1300
|
77
77
|
lgt_jobs/lgt_data/models/leads/message.py,sha256=7mXwYfSpmhY_zC8TfUdAZzxsPP-02bOqVjdkN4Vid5s,1533
|
78
78
|
lgt_jobs/lgt_data/models/notifications/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
79
|
-
lgt_jobs/lgt_data/models/notifications/notification.py,sha256=
|
79
|
+
lgt_jobs/lgt_data/models/notifications/notification.py,sha256=71VfVHboe3j6rsgEPAtsboQJh23l8Ax4SA8BndKeeN0,19874
|
80
80
|
lgt_jobs/lgt_data/models/notifications/notification_settings.py,sha256=VFddLvk2ROz4n50wYuZmqBDn7MssFwj-e9DbWweIVA4,2780
|
81
81
|
lgt_jobs/lgt_data/models/people/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
82
82
|
lgt_jobs/lgt_data/models/people/people.py,sha256=pm60uMVmNIxOGCBAtZWhmXSJOe0SJ4C1y_HurUq00oY,3420
|
@@ -105,7 +105,7 @@ lgt_jobs/lgt_data/repositories/post/posts.py,sha256=ZA19L-CYdxLhlapyMQtSJzP3QMUl
|
|
105
105
|
lgt_jobs/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
106
106
|
lgt_jobs/services/web_client.py,sha256=oMyWJxwGeIe3f40fPT7xcisjDg3BhA3Ipf8dr1jVT-Y,1549
|
107
107
|
lgt_jobs/templates/new_message.html,sha256=dZl8UmdAOOMq4nidvAgMFroSrTV7Pw0RWt2yLp_2idg,6989
|
108
|
-
leadguru_jobs-0.
|
109
|
-
leadguru_jobs-0.
|
110
|
-
leadguru_jobs-0.
|
111
|
-
leadguru_jobs-0.
|
108
|
+
leadguru_jobs-0.674.0.dist-info/METADATA,sha256=_-m8B1VXBW_wF4BE5JpnpEMfwenaBHEcJW1TyTGBHGU,1319
|
109
|
+
leadguru_jobs-0.674.0.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
|
110
|
+
leadguru_jobs-0.674.0.dist-info/top_level.txt,sha256=rIuw1DqwbnZyeoarBSC-bYeGOhv9mZBs7_afl9q4_JI,9
|
111
|
+
leadguru_jobs-0.674.0.dist-info/RECORD,,
|
@@ -123,6 +123,13 @@ class IncomingMessageNotification(Notification):
|
|
123
123
|
def get_button_name() -> str:
|
124
124
|
return 'Go to Chat'
|
125
125
|
|
126
|
+
@staticmethod
|
127
|
+
def get_chat_url(users: list, messages: list):
|
128
|
+
if len(users) > 1:
|
129
|
+
return f'{portal_url}/feed?chat=true'
|
130
|
+
else:
|
131
|
+
return IncomingMessageNotification.get_button_url(users[0], messages[0]['bot']['source']['source_id'])
|
132
|
+
|
126
133
|
@staticmethod
|
127
134
|
def get_button_url(sender_id: str, source_id: str) -> str:
|
128
135
|
return f'{portal_url}/feed?senderId={sender_id}&sourceId={source_id}'
|
File without changes
|
File without changes
|