{"action":"created","issue":{"url":"https://api.github.com/repos/majn/telegram-purple/issues/251","repository_url":"https://api.github.com/repos/majn/telegram-purple","labels_url":"https://api.github.com/repos/majn/telegram-purple/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/majn/telegram-purple/issues/251/comments","events_url":"https://api.github.com/repos/majn/telegram-purple/issues/251/events","html_url":"https://github.com/majn/telegram-purple/issues/251","id":139506901,"number":251,"title":"Send message read notifications in a more sophisticated way","user":{"login":"tremby","id":199635,"avatar_url":"https://avatars.githubusercontent.com/u/199635?v=3","gravatar_id":"","url":"https://api.github.com/users/tremby","html_url":"https://github.com/tremby","followers_url":"https://api.github.com/users/tremby/followers","following_url":"https://api.github.com/users/tremby/following{/other_user}","gists_url":"https://api.github.com/users/tremby/gists{/gist_id}","starred_url":"https://api.github.com/users/tremby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tremby/subscriptions","organizations_url":"https://api.github.com/users/tremby/orgs","repos_url":"https://api.github.com/users/tremby/repos","events_url":"https://api.github.com/users/tremby/events{/privacy}","received_events_url":"https://api.github.com/users/tremby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/majn/telegram-purple/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-09T08:13:01Z","updated_at":"2016-04-08T18:25:40Z","closed_at":null,"body":"Through some rough testing I've found that the plugin is sending \"message is read\" notifications immediately on message receipt, even if the Pidgin tab in question isn't visible, the window isn't focused, I'm on a different virtual desktop, the window is minimized, etc. Only when I set my status to \"away\" does it not send them, it seems.\r\n\r\nI wonder if this could be more sophisticated.\r\n\r\nPidgin gives the tab a particular colour when there is an unread message, meaning either the window was unfocused or the tab wasn't active. I think it'd be best if the notification was sent when this Pidgin notification is cleared. Same sort of thing for Finch.\r\n\r\nWould this be possible -- can you get at this data from a plugin?"},"comment":{"url":"https://api.github.com/repos/majn/telegram-purple/issues/comments/207547039","html_url":"https://github.com/majn/telegram-purple/issues/251#issuecomment-207547039","issue_url":"https://api.github.com/repos/majn/telegram-purple/issues/251","id":207547039,"user":{"login":"tremby","id":199635,"avatar_url":"https://avatars.githubusercontent.com/u/199635?v=3","gravatar_id":"","url":"https://api.github.com/users/tremby","html_url":"https://github.com/tremby","followers_url":"https://api.github.com/users/tremby/followers","following_url":"https://api.github.com/users/tremby/following{/other_user}","gists_url":"https://api.github.com/users/tremby/gists{/gist_id}","starred_url":"https://api.github.com/users/tremby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tremby/subscriptions","organizations_url":"https://api.github.com/users/tremby/orgs","repos_url":"https://api.github.com/users/tremby/repos","events_url":"https://api.github.com/users/tremby/events{/privacy}","received_events_url":"https://api.github.com/users/tremby/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T18:25:39Z","updated_at":"2016-04-08T18:25:39Z","body":"> It already works like that if you turn automatic acks off.\r\n\r\nOh? On typing, or on reply?"}}