Compare commits

...

4 Commits

Author SHA1 Message Date
4ec8ab50e7 fuck merge conflicts 2024-01-22 22:28:00 +11:00
85e78bae0e amend! Merged with 0.7.4 release
Merged with 0.7.4 release
2024-01-22 19:27:12 +11:00
442a1aafee amend! Merged with 0.7/4 release
Merged with 0.7/4 release
2024-01-22 19:26:43 +11:00
c7287c861c Merged with 0.7/4 release 2024-01-22 19:21:52 +11:00
6 changed files with 9 additions and 14 deletions

View File

@ -16,4 +16,4 @@ documentation in the following modules first:
__app_name__ = "moment"
__display_name__ = "Moment"
__reverse_dns__ = "xyz.mx-moment"
__version__ = "0.7.4"
__version__ = "0.7.4"

View File

@ -611,4 +611,4 @@ class Backend:
if self.audio_working:
trace = traceback.format_exc().rstrip()
log.error("Playing audio failed\n%s", trace)
self.audio_working = False
self.audio_working = False

View File

@ -115,7 +115,6 @@ class MatrixImageInfo(NamedTuple):
class MatrixClient(nio.AsyncClient):
<<<<<<< HEAD
"""A client for an account to interact with a matrix homeserver."""
user_id_regex = re.compile(r"^@.+:.+")
@ -2473,7 +2472,6 @@ class MatrixClient(nio.AsyncClient):
content=key, hidden=True, **fields,
)
async def register_message_replacement(
self,
room: nio.MatrixRoom,
@ -2541,7 +2539,6 @@ class MatrixClient(nio.AsyncClient):
hidden=True, **fields,
)
async def register_nio_event(
self,
room: nio.MatrixRoom,
@ -2626,6 +2623,7 @@ class MatrixClient(nio.AsyncClient):
if from_us and tx_id and f"echo-{tx_id}" in model:
item.id = f"echo-{tx_id}"
self.event_to_echo_ids[ev.event_id] = item.id
reactions = self.unassigned_reaction_events.get(item.id, {})
for key, senders in reactions.items(): # update reactions
if key not in item.reactions:
@ -2726,4 +2724,4 @@ class MatrixClient(nio.AsyncClient):
) if item.sender_avatar else "",
)
return item
return item

View File

@ -28,9 +28,10 @@ class TypeSpecifier(AutoStrEnum):
Unset = auto()
ProfileChange = auto()
MembershipChange = auto()
Reaction = auto()
Reaction = auto()
ReactionRedaction = auto()
MessageReplace = auto()
MessageReplace = auto()
class PingStatus(AutoStrEnum):
"""Enum for the status of a homeserver ping operation."""
@ -360,10 +361,8 @@ class Event(ModelItem):
mentions: List[Tuple[str, str]] = field(default_factory=list)
reactions: Dict[str, Dict[str, Any]] = field(default_factory=dict)
replaced: bool = False
content_history: List[Dict[str, Any]] = field(default_factory=list)
type_specifier: TypeSpecifier = TypeSpecifier.Unset
target_id: str = ""
@ -443,5 +442,4 @@ class Event(ModelItem):
return json.dumps(source_dict)
if field == "content_history":
return serialize_value_for_qml(self.content_history)
return super().serialized_field(field)

View File

@ -619,6 +619,7 @@ class NioCallbacks:
await self.client.register_nio_event(room, ev, content=co)
# Room events, invite events and misc events callbacks
async def onRoomNameEvent(
self, room: nio.MatrixRoom, ev: nio.RoomNameEvent,
) -> None:
@ -629,8 +630,6 @@ class NioCallbacks:
await self.client.register_nio_event(room, ev, content=co)
# Room events, invite events and misc events callbacks
async def onRoomMessageText(
self, room: nio.MatrixRoom, ev: nio.RoomMessageText,
) -> None:

@ -1 +1 @@
Subproject commit 9e9be32d6010cad484a7b12b1a3d19c6cf4c1353
Subproject commit c0cb66d62f4b71454fde40b0513f727dd1de32a6