oncall icon indicating copy to clipboard operation
oncall copied to clipboard

Fix slack notifications not displaying properly

Open mderynck opened this issue 3 years ago • 2 comments

#167

Use text fallback field in all places where attachments and blocks are used. Replace attachments with blocks in some cases so text is not repeated in both.

Blocks do not support having the colored line on the left. Alternatively we could use a colored dot emoji.

From slack docs:

Any content displayed within attachments may be wrapped, truncated, or hidden behind a "show more" style option by Slack clients. This isn't the case with the top-level blocks field.

mderynck avatar Aug 02 '22 17:08 mderynck

Added block or text field to each postMessage and update

iskhakov avatar Aug 09 '22 18:08 iskhakov

I tested the most recent set of changes on Ubuntu and Android. All the messages displayed properly when displaying as notifications or mentions & reactions.

mderynck avatar Aug 09 '22 20:08 mderynck

@mderynck could you please provide screenshots of how Slack messages look after update?

Matvey-Kuk avatar Aug 17 '22 07:08 Matvey-Kuk

Current (Android Mentions & Reactions) - I think the slack client was updated so they appear blank instead of "Content cannot be displayed"

Before_Mention

Current (Android Thread)

Before_Thread

After (Android Mentions & Reactions) - Ignore the bot icon, mine is customized so I can tell different versions apart

After_Mention

After (Android Thread)

After_Thread

mderynck avatar Aug 17 '22 20:08 mderynck

Merging

iskhakov avatar Aug 23 '22 15:08 iskhakov