fix(line): use build_source instead of nonexistent create_source
The LINE adapter calls self.create_source(...) which raises AttributeError on every inbound message — no such method exists. The base PlatformAdapter exposes this factory as build_source(), consistent with the IRC and Teams adapters. Fixes #23728
This commit is contained in:
@@ -959,7 +959,7 @@ class LineAdapter(BasePlatformAdapter):
|
|||||||
if chat_type == "dm" and self._client:
|
if chat_type == "dm" and self._client:
|
||||||
asyncio.create_task(self._client.loading(chat_id))
|
asyncio.create_task(self._client.loading(chat_id))
|
||||||
|
|
||||||
source_obj = self.create_source(
|
source_obj = self.build_source(
|
||||||
chat_id=chat_id,
|
chat_id=chat_id,
|
||||||
chat_type=chat_type,
|
chat_type=chat_type,
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user