mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 05:41:05 +08:00
b0af770cf3
Summary: - Remove thread_participants prop, we don't use them anywhere and the underscore-case is ugly. - Move autolinker into extension, update autolinker to 0.18.1 for phone number support - document message.coffee, add isFromMe() - Add tracking pixel extension that removes pixels from mail you *send*. Maybe more features later. Test Plan: Run 1 new test! (woo...) Reviewers: evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D1787
10 lines
349 B
CoffeeScript
10 lines
349 B
CoffeeScript
Autolinker = require 'autolinker'
|
|
{MessageStoreExtension} = require 'nylas-exports'
|
|
|
|
class AutolinkerExtension extends MessageStoreExtension
|
|
|
|
@formatMessageBody: (message) ->
|
|
# Apply the autolinker pass to make emails and links clickable
|
|
message.body = Autolinker.link(message.body, {twitter: false})
|
|
|
|
module.exports = AutolinkerExtension
|