forked from CringeStudios/gamja
Use msgid in message URL if available
This commit is contained in:
parent
0d9f7f35f0
commit
e041129a10
4
state.js
4
state.js
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user