Skip to content

Commit

Permalink
Merge pull request #866 from nanu-c/updates
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
nanu-c authored Aug 19, 2022
2 parents 34ba811 + 4160583 commit 3a704ce
Show file tree
Hide file tree
Showing 11 changed files with 115 additions and 55 deletions.
2 changes: 1 addition & 1 deletion app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

const AppName = "textsecure.nanuc"

const AppVersion = "1.3.1"
const AppVersion = "1.4.0"

// Do not allow sending attachments larger than 100M for now
const MaxAttachmentSize int64 = 100 * 1024 * 1024
Expand Down
6 changes: 3 additions & 3 deletions app/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package handler
import (
"bytes"
"fmt"
"io/ioutil"
"io"
"strings"
"time"

Expand Down Expand Up @@ -68,7 +68,7 @@ func buildAndSaveMessage(msg *textsecure.Message, syncMessage bool) {
av := []byte{}

if gr.Avatar != nil {
av, err = ioutil.ReadAll(bytes.NewReader(gr.Avatar))
av, err = io.ReadAll(bytes.NewReader(gr.Avatar))
if err != nil {
log.Println("[axolotl] avatar", err)
return
Expand Down Expand Up @@ -216,7 +216,7 @@ func buildAndSaveMessage(msg *textsecure.Message, syncMessage bool) {
err, id := store.FindQuotedMessage(msg.Quote())
if err != nil || id == -1 {
// create quoted message
quoteMessage := session.Add(text, msg.Quote().GetAuthorE164(), nil, msg.Quote().GetText(), false, store.ActiveSessionID)
quoteMessage := session.Add(text, msg.Quote().GetAuthorUuid(), nil, msg.Quote().GetText(), false, store.ActiveSessionID)
quoteMessage.Flags = helpers.MsgFlagHiddenQuote
err, savedQuoteMessage := store.SaveMessage(quoteMessage)
id = savedQuoteMessage.ID
Expand Down
3 changes: 3 additions & 0 deletions appimage/AppDir/axolotl.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
</screenshot>
</screenshots>
<releases>
<release version="1.4.0" date="2022-08-19">
<url>https://github.com/nanu-c/axolotl/releases/tag/v1.4.0</url>
</release>
<release version="1.3.1" date="2022-08-02">
<url>https://github.com/nanu-c/axolotl/releases/tag/v1.3.1</url>
</release>
Expand Down
137 changes: 92 additions & 45 deletions axolotl-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.4.0 (Aug 19 2022)
------------------------------------
* update axolotl-web depencies to latest versions @nanu-c
* update protobufs @nanu-c

1.3.1 (Aug 2 2022)
------------------------------------
* fix for ssh+git links in package-lock.json /fixes flatpack build @nanu-c
Expand Down
2 changes: 1 addition & 1 deletion docs/INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ To build the application, use the following command from the root of this reposi

To install the built snap, use snap:

`sudo snap install axolotl_1.3.1_amd64.snap --dangerous`
`sudo snap install axolotl_1.4.0_amd64.snap --dangerous`

**Run**

Expand Down
3 changes: 3 additions & 0 deletions flatpak/org.nanuc.Axolotl.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
</screenshot>
</screenshots>
<releases>
<release version="1.4.0" date="2022-08-19">
<url>https://github.com/nanu-c/axolotl/releases/tag/v1.4.0</url>
</release>
<release version="1.3.1" date="2022-08-02">
<url>https://github.com/nanu-c/axolotl/releases/tag/v1.3.1</url>
</release>
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require (
github.com/pkg/errors v0.9.1
github.com/signal-golang/go-vcard v0.1.2
github.com/signal-golang/libphonenumber v1.2.2-0.20220127214340-b765372d3707
github.com/signal-golang/textsecure v1.11.0
github.com/signal-golang/textsecure v1.12.1
github.com/sirupsen/logrus v1.9.0
github.com/ttacon/builder v0.0.0-20170518171403-c099f663e1c2 // indirect
github.com/vincent-petithory/dataurl v1.0.0
Expand Down
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
github.com/Blackoverflow/gcmsiv v0.0.0-20201031155123-20af2af977ff h1:l3WopnX/gWnDItXZdr2Ygq0+4ZwXCSyozyPNR8jdb8I=
github.com/Blackoverflow/gcmsiv v0.0.0-20201031155123-20af2af977ff/go.mod h1:t1lmwOv+IYxaUkr2qIKXEfn90t4GgocS0qy8jkDonbg=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=
github.com/akavel/rsrc v0.8.0 h1:zjWn7ukO9Kc5Q62DOJCcxGpXC18RawVtYAGdz2aLlfw=
Expand Down Expand Up @@ -110,8 +112,8 @@ github.com/signal-golang/libphonenumber v1.2.2-0.20220127214340-b765372d3707 h1:
github.com/signal-golang/libphonenumber v1.2.2-0.20220127214340-b765372d3707/go.mod h1:oW+JXk+4C0R5h8BQzfRA4k/vXuBfBcNSqKWjn7Dgncs=
github.com/signal-golang/mimemagic v0.0.0-20200821045537-3f613cf2cd3f h1:S17lCk5rcobvgcaLf7XSAoLuNkRPgFyhvgRA9JwDzHc=
github.com/signal-golang/mimemagic v0.0.0-20200821045537-3f613cf2cd3f/go.mod h1:tU6SWwv50oGkZNPlvTFvmqZvEBp0vWWCC+LCEVlTE5A=
github.com/signal-golang/textsecure v1.11.0 h1:l8dtRCrPrtyWX27HN32GuYLBlCazSLJtrMJlPzj2SDw=
github.com/signal-golang/textsecure v1.11.0/go.mod h1:teNGhh4TcoKEfPta0A8JKq25zerVF+mh1ZYWAelVeGQ=
github.com/signal-golang/textsecure v1.12.1 h1:OXFyTbSMBh4SwiOQufhNzVyqxtCI+DJ5AmEvs7vJUEE=
github.com/signal-golang/textsecure v1.12.1/go.mod h1:sna5yQxNwY/F54q/K4xxP90VgWMSBgm3L8zbWOkF2mk=
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0=
github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "textsecure.nanuc",
"version": "1.3.1",
"version": "1.4.0",
"description": "A Signal compatible messaging client for Ubuntu phones",
"title": "Axolotl",
"architecture": "@CLICK_ARCH@",
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ grade: stable
confinement: strict
base: core20
icon: snap/gui/axolotl.png
version: "1.3.1"
version: "1.4.0"
architectures:
- build-on: amd64
- build-on: arm64
Expand Down

0 comments on commit 3a704ce

Please sign in to comment.