matrix-org / matrix-org/matrix-ios-sdk

Compile error when trying to send a message

Open
#975 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Objective-C
Stars
484
Forks
225
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Xcode can no longer compile the swift code, ones room.sendTextMessage is called.

To Reproduce
Steps to reproduce the behavior:

  1. Create a MXSession like in the examples
  2. select a room from the MXSession.rooms value
  3. call sendTextMessage on the room
  4. Xcode cannot compile anymore (Trace/BPT trap: 5)

(things like sendTypingNotification on the room works)

Expected behavior
should compile and send a text message

Desktop (please complete the following information):

  • OS: macOS 11.0.1 (apple silicon M1)
  • Version [0.17.4] (swift)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with an MXSession, a selected room from MXSession.rooms, and a call to sendTextMessage in Xcode on the reported environment. Compare this with sendTypingNotification, which works, and consider the issue done when the project compiles and the text message sends successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.