From aa0e9281d1ce99e0739ee3770645988e0cb86a8b Mon Sep 17 00:00:00 2001
From: lovetox <philipp@hoerist.com>
Date: Tue, 13 Apr 2021 23:46:08 +0200
Subject: [PATCH] Fix Info message

---
 gajim/gtk/conversation/rows/info.py | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/gajim/gtk/conversation/rows/info.py b/gajim/gtk/conversation/rows/info.py
index 2c9f836856..d66221b939 100644
--- a/gajim/gtk/conversation/rows/info.py
+++ b/gajim/gtk/conversation/rows/info.py
@@ -19,8 +19,10 @@
 
 from gajim.common.const import AvatarSize
 from gajim.common.i18n import _
+from gajim.common.styling import process
 
 from .base import BaseRow
+from ..message_widget import MessageWidget
 
 
 class InfoMessageRow(BaseRow):
@@ -56,12 +58,9 @@ def __init__(self,
         timestamp_widget.set_valign(Gtk.Align.START)
         self.grid.attach(timestamp_widget, 2, 0, 1, 1)
 
-        self.textview.set_justification(Gtk.Justification.CENTER)
-        self.textview.print_text(
-            text,
-            other_text_tags=other_text_tags,
-            kind=kind,
-            graphics=graphics)
+        result = process(text)
+        message_widget = MessageWidget(account)
+        message_widget.add_content(result.blocks)
 
-        self.grid.attach(self.textview, 1, 0, 1, 1)
+        self.grid.attach(message_widget, 1, 0, 1, 1)
         self.show_all()
-- 
GitLab