{"id":6502,"date":"2020-12-18T15:23:58","date_gmt":"2020-12-18T13:23:58","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=6502"},"modified":"2020-12-18T15:24:46","modified_gmt":"2020-12-18T13:24:46","slug":"yup-your-description-of-the-issue-is-exactly-right","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2020\/12\/18\/yup-your-description-of-the-issue-is-exactly-right\/","title":{"rendered":"Yup, your description of the issue is exactly right"},"content":{"rendered":"<p>Yup, your description of the issue is exactly right\u00a0<a class=\"user-mention\" href=\"https:\/\/github.com\/agnivade\" data-hovercard-type=\"user\" data-hovercard-url=\"\/users\/agnivade\/hovercard\" data-octo-click=\"hovercard-link-click\" data-octo-dimensions=\"link_type:self\">@agnivade<\/a>, and thanks for looking into this!<\/p>\n<p>I set up the two users in parallel windows. Sending a normal message as userB this way does not trigger the issue (I do get a notification on userA&#8217;s phone, but it doesn&#8217;t go away by itself), but that&#8217;s because userA&#8217;s window is (obviously) not active, since I&#8217;m typing in userB&#8217;s window. The notification is only cleared once I activate userA&#8217;s window.<\/p>\n<p>But I\u00a0<em>can<\/em>\u00a0trigger the issue by using (for instance)\u00a0<code>\/echo 'hello A' 4<\/code>\u00a0instead (as userB), then hopping on to activate userA&#8217;s window during the 4-second delay, so that userA&#8217;s window is active when receiving the message. That&#8217;s the crucial bit: the receiver&#8217;s window is active when receiving the message. If his status is &#8217;Online&#8217;, there&#8217;s no push notification (as expected), but if it&#8217;s &#8217;Away&#8217;, that&#8217;s when I get the ghost notification.<\/p>\n<p>Here&#8217;s\u00a0<a href=\"https:\/\/github.com\/mattermost\/mattermost-mobile\/files\/5715861\/mattermost.log\">server log<\/a>\u00a0and\u00a0<a href=\"https:\/\/github.com\/mattermost\/mattermost-mobile\/files\/5715863\/mmp.log\">MPNS log<\/a>\u00a0during one minute where (as userB)\u00a0I first send a normal message, then (at about 30 seconds) using\u00a0<code>\/echo<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I set up the two user windows. Sending a normal message as userB this way does not trigger the issue, but I can trigger it by using \/echo &#8217;hello A&#8217; 4.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14049],"class_list":["post-6502","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-mattermost","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=6502"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6502\/revisions"}],"predecessor-version":[{"id":6504,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6502\/revisions\/6504"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}