mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 23:43:42 +01:00
Use msgid in message URL if available
This commit is contained in:
parent
0d9f7f35f0
commit
e041129a10
6
state.js
6
state.js
@ -45,5 +45,9 @@ export function getBufferURL(buf) {
|
|||||||
|
|
||||||
export function getMessageURL(buf, msg) {
|
export function getMessageURL(buf, msg) {
|
||||||
var bufURL = getBufferURL(buf);
|
var bufURL = getBufferURL(buf);
|
||||||
return bufURL + "#timestamp=" + encodeURIComponent(msg.tags.time);
|
if (msg.tags.msgid) {
|
||||||
|
return bufURL + "#msgid=" + encodeURIComponent(msg.tags.msgid);
|
||||||
|
} else {
|
||||||
|
return bufURL + "#timestamp=" + encodeURIComponent(msg.tags.time);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user