Use msgid in message URL if available

This commit is contained in:
Simon Ser 2020-07-21 14:48:04 +02:00
parent 0d9f7f35f0
commit e041129a10
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -45,5 +45,9 @@ export function getBufferURL(buf) {
export function getMessageURL(buf, msg) {
var bufURL = getBufferURL(buf);
if (msg.tags.msgid) {
return bufURL + "#msgid=" + encodeURIComponent(msg.tags.msgid);
} else {
return bufURL + "#timestamp=" + encodeURIComponent(msg.tags.time);
}
}