Skip to content

Commit

Permalink
fix ahmdrz#199 & ahmdrz#201 type mismatch (ahmdrz#200)
Browse files Browse the repository at this point in the history
* Update newconversation.go

* Update types.go
  • Loading branch information
codenoid authored and ahmdrz committed Jan 25, 2019
1 parent eca9105 commit 0e27491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/inbox/newconversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {
err = inst.Inbox.Sync()
e.CheckErr(err)

err = inst.Inbox.New(&user, strings.Join(os.Args[1:], " "))
err = inst.Inbox.New(user, strings.Join(os.Args[1:], " "))
e.CheckErr(err)

if !e.UsingSession {
Expand Down
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ type LiveItems struct {
ID string `json:"pk"`
User User `json:"user"`
Broadcasts []Broadcast `json:"broadcasts"`
LastSeenBroadcastTs int64 `json:"last_seen_broadcast_ts"`
LastSeenBroadcastTs float64 `json:"last_seen_broadcast_ts"`
RankedPosition int64 `json:"ranked_position"`
SeenRankedPosition int64 `json:"seen_ranked_position"`
Muted bool `json:"muted"`
Expand Down

0 comments on commit 0e27491

Please sign in to comment.