Fix cursor channel not updated to ephemeral

pull/1/head
yflory 6 years ago
parent 38803195a3
commit e5abaa34b2

@ -201,7 +201,7 @@ define([
if (typeof(channel) !== 'string' || channel.length !== Hash.ephemeralChannelLength) {
channel = Hash.createChannelId(true); // true indicates that it's an ephemeral channel
}
if (!md.cursor) {
if (md.cursor !== channel) {
md.cursor = channel;
ctx.metadataMgr.updateMetadata(md);
setTimeout(saveChanges);

Loading…
Cancel
Save