slackapi / slackapi/python-slack-sdk
Last Bullet List Item Not Displayed on iOS Devices
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 4k
- Forks
- 857
- Ø Merge
- 22 Std. 21 Min.
- Gemergte PRs (30 T.)
- 16
Beschreibung
On iOS devices, the last line of the bullet list is not showing up when the message is sent using blocks.
This issue doesn't occur on desktop or Android devices where it displays as expected.
(See screenshots and code provided below.)
Reproducible in:
The Slack SDK version
slack_sdk==3.27.1
Python runtime version
Python 3.11.7
OS info
Darwin Kernel Version 23.3.0: Wed Dec 20 21:28:58 PST 2023; root:xnu-10002.81.5~7/RELEASE_X86_64
Steps to reproduce:
import os
from slack_sdk import WebClient
channel = os.environ["SLACK_CHANNEL"]
slack_token = os.environ["SLACK_BOT_TOKEN"]
client = WebClient(token=slack_token)
blocks = [
{'type': 'section', 'text': {'type': 'mrkdwn', 'text': 'Bullet list:'}},
{'type': 'section', 'text': {'type': 'mrkdwn', 'text': '• `john.doe@example.com`\n• `john.smith@example.com`'}}
]
client.chat_postMessage(
channel=channel, blocks=blocks
)
Expected result:
Actual result:
Requirements
For general questions/issues about Slack API platform or its server-side, could you submit questions at https://my.slack.com/help/requests/new instead. 🙇
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem im Issue gezeigten Aufruf chat_postMessage und der Payload blocks und reproduziere anschließend den Darstellungsunterschied auf iOS und Desktop. Die Payload nennt keine Repository-Datei und keinen Test. Bestimme daher, ob das Python SDK den Blockinhalt vor dem Senden ändert. Als abgeschlossen gilt die Identifizierung einer Korrektur im SDK und eines Regressionstests oder die Bestätigung, dass das Verhalten außerhalb dieses Repositorys liegt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100