Fixing no show text

This commit is contained in:
Sarah Jamie Lewis 2019-02-05 13:48:24 -08:00
parent 05d9ae1e83
commit d4a601279c
2 changed files with 7 additions and 8 deletions

View File

@ -74,21 +74,16 @@ func (this *InterfaceState) AddMessage(m *gobjects.Message) {
_, found := this.contacts[m.Handle]
if !found {
this.AddContact(&gobjects.Contact{
m.DisplayName,
m.Image,
m.Handle,
m.Handle,
cwutil.RandomProfileImage(m.Handle),
"",
1,
0,
0,
false,
})
}
c := the.Peer.GetContact(m.Handle)
if c == nil {
}
_, found = this.messages[m.Handle]
if !found {
this.messages[m.Handle] = make([]*gobjects.Message, 0)

View File

@ -102,6 +102,9 @@ ColumnLayout {
Flickable {
id: flkMessage
anchors.fill: parent//this does nothing! bug in qt
Layout.minimumWidth: parent.width
Layout.maximumWidth: parent.width
Layout.minimumHeight: rectMessage.height
Layout.maximumHeight: rectMessage.height
contentWidth: txtMessage.width
@ -120,6 +123,7 @@ ColumnLayout {
padding: 6
wrapMode: TextEdit.Wrap
textFormat: Text.RichText
width: rectMessage.width
property bool skipOneUpdate: false