From e1a81b418508b9a05c71c1b3456c5226b9c0c3d5 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 22 Jul 2017 07:15:33 -0700 Subject: [PATCH] exclude self mention on reply to self #33 --- src/pages/stream/stream.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/stream/stream.ts b/src/pages/stream/stream.ts index 03e501f..5ecec86 100644 --- a/src/pages/stream/stream.ts +++ b/src/pages/stream/stream.ts @@ -326,7 +326,11 @@ export class NewPostModal { if (navParams.data.type === 'reply') { this.replyid = navParams.data.post.id; this.options = {replyTo: this.replyid}; - this.ptext = "@" + navParams.data.post.user.username + " "; + if (navParams.data.post.user.username !== this.myUsername) { + this.ptext = "@" + navParams.data.post.user.username + " "; + } else { + this.ptext = "" + } if (navParams.data.post.content.entities) { if (navParams.data.post.content.entities.mentions) { this.ptext = this.ptext + this.parseMentions(navParams.data.post.content.entities.mentions);