git ssb

16+

Dominic / patchbay



Commit 83ae3109eb162b5f5b5c962e4f2cff738ee0f75d

fix: scroll down to msg for threads already open

mix irving committed on 3/3/2018, 10:33:29 AM
Parent: c335d074d98419654a6f798e8a29e7038515e226

Files changed

app/sync/goTo.jschanged
app/sync/goTo.jsView
@@ -33,10 +33,14 @@
3333 // currently do normalisation here only to generate normalised locationId
3434 api.router.async.normalise(location, (err, location) => {
3535 const locationId = api.app.sync.locationId(location)
3636
37- if (tabs.has(locationId)) {
37 + var page = tabs.get(locationId)
38 + if (page) {
3839 tabs.select(locationId)
40 + if (page && page.firstChild && page.firstChild.scrollDownToMessage) {
41 + page.firstChild.scrollDownToMessage(location.key)
42 + }
3943 api.history.sync.push(location)
4044
4145 return true
4246 }

Built with git-ssb-web