Reset module tracking, in order to fix emojis

This commit is contained in:
2025-09-02 08:18:02 +01:00
parent 853bed70e7
commit c0d19e4335
3 changed files with 54 additions and 64 deletions

View File

@@ -166,11 +166,11 @@ func CreateUITab(chatJidStr string) ChatTabUI {
btn := widget.NewButtonWithIcon("View media", icon, func() {
})
return container.NewVBox(container.NewHBox(ico, author), content, btn)
return container.NewVBox(widget.NewLabel("example text"), container.NewHBox(ico, author), content, btn)
},
func(i widget.ListItemID, co fyne.CanvasObject) {
vbox := co.(*fyne.Container)
authorBox := vbox.Objects[0].(*fyne.Container)
authorBox := vbox.Objects[1].(*fyne.Container)
// generate a Icon
gen, _ := identicon.New("github", 5, 3)
@@ -183,8 +183,8 @@ func CreateUITab(chatJidStr string) ChatTabUI {
// Icon generate end
author := authorBox.Objects[1].(*widget.Label)
content := vbox.Objects[1].(*widget.Label)
btn := vbox.Objects[2].(*widget.Button)
content := vbox.Objects[2].(*widget.Label)
btn := vbox.Objects[3].(*widget.Button)
if chatTabs[chatJidStr].Messages[i].Important {
//content.Importance = widget.DangerImportance TODO: Fix highlighting messages with mentions, it's currently broken
}