loleaflet/src/layer/tile/CalcTileLayer.js |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit ad13235f446368a3150efdedb42659429116e07b
Author:     Szymon Kłos <szymon.k...@collabora.com>
AuthorDate: Wed Aug 12 10:16:54 2020 +0200
Commit:     Jan Holesovsky <ke...@collabora.com>
CommitDate: Wed Aug 12 13:23:25 2020 +0200

    Show avatar for newly inserted comments in calc
    
    Change-Id: If602901982e8084856ca5361ab256a93e1045e45
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100581
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/loleaflet/src/layer/tile/CalcTileLayer.js 
b/loleaflet/src/layer/tile/CalcTileLayer.js
index c636d04ca..4bf197b85 100644
--- a/loleaflet/src/layer/tile/CalcTileLayer.js
+++ b/loleaflet/src/layer/tile/CalcTileLayer.js
@@ -237,6 +237,9 @@ L.CalcTileLayer = L.TileLayer.extend({
                        var obj = 
JSON.parse(textMsg.substring('comment:'.length + 1));
                        obj.comment.tab = parseInt(obj.comment.tab);
                        if (obj.comment.action === 'Add') {
+                               if (obj.comment.author in 
this._map._viewInfoByUserName) {
+                                       obj.comment.avatar = 
this._map._viewInfoByUserName[obj.comment.author].userextrainfo.avatar;
+                               }
                                obj.comment.cellPos = 
L.LOUtil.stringToBounds(obj.comment.cellPos);
                                obj.comment.cellPos = 
L.latLngBounds(this._twipsToLatLng(obj.comment.cellPos.getBottomLeft()),
                                        
this._twipsToLatLng(obj.comment.cellPos.getTopRight()));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to