mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
Refactor Rust timeline identifiers into our own. (#3731)
* Refactor eventOrTransactionID. * Refactor uniqueID.
This commit is contained in:
@@ -302,7 +302,7 @@ struct MessageComposer_Previews: PreviewProvider, TestablePreview {
|
||||
messageComposer()
|
||||
|
||||
messageComposer(.init(string: "Some message"),
|
||||
mode: .edit(originalEventOrTransactionID: .eventId(eventId: UUID().uuidString), type: .default))
|
||||
mode: .edit(originalEventOrTransactionID: .eventID(UUID().uuidString), type: .default))
|
||||
|
||||
messageComposer(mode: .reply(eventID: UUID().uuidString,
|
||||
replyDetails: .loaded(sender: .init(id: "Kirk"),
|
||||
@@ -313,9 +313,9 @@ struct MessageComposer_Previews: PreviewProvider, TestablePreview {
|
||||
Color.clear.frame(height: 20)
|
||||
|
||||
messageComposer(.init(string: "Some new caption"),
|
||||
mode: .edit(originalEventOrTransactionID: .eventId(eventId: UUID().uuidString), type: .addCaption))
|
||||
mode: .edit(originalEventOrTransactionID: .eventID(UUID().uuidString), type: .addCaption))
|
||||
messageComposer(.init(string: "Some updated caption"),
|
||||
mode: .edit(originalEventOrTransactionID: .eventId(eventId: UUID().uuidString), type: .editCaption))
|
||||
mode: .edit(originalEventOrTransactionID: .eventID(UUID().uuidString), type: .editCaption))
|
||||
}
|
||||
.padding(.horizontal)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user