mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Don't mark your message as read if it comes from the API
(imported from commit 0570d4db590e21b0fadd544b10c9865fa7acd66b)
This commit is contained in:
@@ -197,7 +197,10 @@ function message_unread(message) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (message.sender_email === email) {
|
||||
var sent_by_human = ['website', 'iphone', 'android']
|
||||
.indexOf(message.client.toLowerCase()) !== -1;
|
||||
|
||||
if (message.sender_email === email && sent_by_human) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user