loleaflet/src/layer/tile/CalcTileLayer.js | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 252c9245a68255836173a573554c9dd522790ce6 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Mon Aug 10 14:43:44 2020 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Aug 19 22:57:28 2020 +0200 Show availible user avatars in comments in calc Shows only for users which are present in the session as oly for them we have available data. Change-Id: I26b7c7f4358873216dba9fbf69a2608b1bf0803f Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100430 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Jan Holesovsky <ke...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101019 Tested-by: Jenkins Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js b/loleaflet/src/layer/tile/CalcTileLayer.js index 917b08b1d..35eae4c14 100644 --- a/loleaflet/src/layer/tile/CalcTileLayer.js +++ b/loleaflet/src/layer/tile/CalcTileLayer.js @@ -884,6 +884,9 @@ L.CalcTileLayer = (L.Browser.mobile ? L.TileLayer : L.CanvasTileLayer).extend({ for (var index in values.comments) { comment = values.comments[index]; comment.tab = parseInt(comment.tab); + if (comment.author in this._map._viewInfoByUserName) { + comment.avatar = this._map._viewInfoByUserName[comment.author].userextrainfo.avatar; + } comment.cellPos = L.LOUtil.stringToBounds(comment.cellPos); comment.cellPos = L.latLngBounds(this._twipsToLatLng(comment.cellPos.getBottomLeft()), this._twipsToLatLng(comment.cellPos.getTopRight())); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits