Fix waveToThread
This commit is contained in:
committed by
GitHub
parent
dfcc826b7e
commit
22a691ec0f
@@ -1004,7 +1004,7 @@ class Client(object):
|
|||||||
thread_id, thread_type = self._getThread(thread_id, thread_type)
|
thread_id, thread_type = self._getThread(thread_id, thread_type)
|
||||||
data = self._getSendData(thread_id=thread_id, thread_type=thread_type)
|
data = self._getSendData(thread_id=thread_id, thread_type=thread_type)
|
||||||
data['action_type'] = 'ma-type:user-generated-message'
|
data['action_type'] = 'ma-type:user-generated-message'
|
||||||
data['lightweight_action_attachment[lwa_state]'] = "INITIATED" if init else "RECIPROCATED"
|
data['lightweight_action_attachment[lwa_state]'] = "INITIATED" if wave_first else "RECIPROCATED"
|
||||||
data['lightweight_action_attachment[lwa_type]'] = "WAVE"
|
data['lightweight_action_attachment[lwa_type]'] = "WAVE"
|
||||||
if thread_type == ThreadType.USER:
|
if thread_type == ThreadType.USER:
|
||||||
data['specific_to_list[0]'] = "fbid:{}".format(thread_id)
|
data['specific_to_list[0]'] = "fbid:{}".format(thread_id)
|
||||||
|
Reference in New Issue
Block a user