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

New commits:
commit 581ccb502ff72ba9a0ef811356949e195fe9dfb5
Author:     Ezinne Nnamani <nnamani.ezi...@collabora.com>
AuthorDate: Fri Sep 4 16:04:13 2020 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Mon Sep 7 07:07:57 2020 +0200

    A fix to display the avatar on the comments in Impress slides
    
    Change-Id: I1ba699d5e8583253ec9d14502629218d8714e5aa
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/102141
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/loleaflet/src/layer/tile/ImpressTileLayer.js 
b/loleaflet/src/layer/tile/ImpressTileLayer.js
index 15b6ef5e1..a8d8a2522 100644
--- a/loleaflet/src/layer/tile/ImpressTileLayer.js
+++ b/loleaflet/src/layer/tile/ImpressTileLayer.js
@@ -170,6 +170,9 @@ L.ImpressTileLayer = L.TileLayer.extend({
        _onMessage: function (textMsg, img) {
                if (textMsg.startsWith('comment:')) {
                        var object = 
JSON.parse(textMsg.substring('comment:'.length + 1));
+                       if (object.comment.author in 
this._map._viewInfoByUserName) {
+                               object.comment.avatar = 
this._map._viewInfoByUserName[object.comment.author].userextrainfo.avatar;
+                       }
                        
this._annotationManager.processCommentMessage(object.comment);
                } else {
                        L.TileLayer.prototype._onMessage.call(this, textMsg, 
img);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to