~emersion/gamja

b289fd10b72a6a282c9bbb1de2e05100af21849c — Simon Ser 5 months ago 429450e
Always mark own messages as read
1 files changed, 4 insertions(+), 0 deletions(-)

M components/app.js
M components/app.js => components/app.js +4 -0
@@ 364,6 364,10 @@ export default class App extends Component {
		let isRead = this.hasReceipt(bufName, ReceiptType.READ, msg);
		// TODO: messages coming from infinite scroll shouldn't trigger notifications

		if (client.isMyNick(msg.prefix.name)) {
			isRead = true;
		}

		let msgUnread = Unread.NONE;
		if ((msg.command == "PRIVMSG" || msg.command == "NOTICE") && !isRead) {
			let target = msg.params[0];