Direct messages should provide a distinct push notification subject

This commit is contained in:
Mark Felder 2019-10-18 17:51:34 -05:00
parent 3b1bc079af
commit 152caef51d
1 changed files with 4 additions and 0 deletions

View File

@ -125,6 +125,10 @@ def format_body(
end end
end end
def format_title(%{activity: %{data: %{"directMessage" => true}}}) do
"New Direct Message"
end
def format_title(%{activity: %{data: %{"type" => type}}}) do def format_title(%{activity: %{data: %{"type" => type}}}) do
case type do case type do
"Create" -> "New Mention" "Create" -> "New Mention"