Skip to content

Commit

Permalink
use address field, temp disable arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyist committed Apr 3, 2024
1 parent b8ff656 commit c948902
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
},
"image": {
"dockerfile": "Dockerfile",
"arch_allowed": "amd64 arm64",
"arch_allowed": "amd64",
"name": "${{ github.repository }}",
"tag": "${{ needs.build_cfg.outputs.VERSION_STR }}${{ needs.build_cfg.outputs.ALT_TAGS }}",
"build_args": [
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
},
"image": {
"dockerfile": "Dockerfile",
"arch_allowed": "amd64 arm64",
"arch_allowed": "amd64",
"name": "${{ github.repository }}",
"tag": "${{ needs.build_cfg.outputs.VERSION_STR }}",
"build_args": [
Expand Down
10 changes: 2 additions & 8 deletions handlers/postmaster/postmaster.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,7 @@ func (h *handler) SendMsg(ctx context.Context, msg courier.Msg) (courier.MsgStat
return nil, fmt.Errorf("invalid chat mode")
}

deviceId := msg.Channel().ConfigForKey("device_id", "").(string)
if deviceId == "" {
return nil, fmt.Errorf("invalid chat mode")
}
deviceId := msg.Channel().Address()

status := h.Backend().NewMsgStatusForID(msg.Channel(), msg.ID(), courier.MsgErrored)

Expand Down Expand Up @@ -282,10 +279,7 @@ func (h *handler) PurgeOutgoing(ctx context.Context, channel courier.Channel) er
return fmt.Errorf("invalid chat mode")
}

deviceID := channel.ConfigForKey("device_id", "").(string)
if deviceID == "" {
return fmt.Errorf("invalid chat mode")
}
deviceID := channel.Address()

pr := purgeRequest{
DeviceID: deviceID,
Expand Down

0 comments on commit c948902

Please sign in to comment.